Skip to content

🏗 AMP Header Minification: Returned theme-color through new <meta> dictionary in documentLoaded message payload.#14137

Merged
dreamofabear merged 2 commits intoampproject:masterfrom
ryanmcgrail95-zz:meta-theme-color
Mar 21, 2018
Merged

🏗 AMP Header Minification: Returned theme-color through new <meta> dictionary in documentLoaded message payload.#14137
dreamofabear merged 2 commits intoampproject:masterfrom
ryanmcgrail95-zz:meta-theme-color

Conversation

@ryanmcgrail95-zz
Copy link
Copy Markdown
Contributor

Creates new dictionary of tags mapping from name to content and passes this to the viewer through the documentLoaded message. This allows the viewer to access the page's theme-color to update the header's color, and can ease development of future features that also rely on tag values.

@dreamofabear dreamofabear self-requested a review March 20, 2018 18:39

let value = metaTags[name];
if (value) {
// Change to array if more than one href for the same rel
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@dreamofabear dreamofabear merged commit 8407672 into ampproject:master Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants