Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Mar 21, 2018

Conversation

ryanmcgrail95-zz
Copy link
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.


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

Choose a reason for hiding this comment

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

Update comment.

Copy link
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.

None yet

3 participants