Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable amp-img => img transformation for hero images #880

Merged
merged 4 commits into from
Aug 3, 2020

Conversation

sebastianbenz
Copy link
Collaborator

No description provided.

@google-cla google-cla bot added the cla: yes label Jul 30, 2020
packages/optimizer/README.md Outdated Show resolved Hide resolved
@@ -320,6 +316,7 @@ class PreloadHeroImage {
}
}
node.attribs['i-amphtml-ssr'] = '';
node.attribs['data-hero'] = '';
Copy link
Member

Choose a reason for hiding this comment

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

Is this added just so developers are aware of the element that was identified as the hero? It's not required for validation as far as I can tell.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct!

Co-authored-by: Weston Ruter <westonruter@google.com>
@sebastianbenz sebastianbenz merged commit 2cc4aa8 into main Aug 3, 2020
@sebastianbenz sebastianbenz deleted the enable-hero-img branch August 3, 2020 11:58
@sebastianbenz
Copy link
Collaborator Author

Thanks Weston!

tharders pushed a commit that referenced this pull request Aug 17, 2020
* Enable amp-img => img transformation for hero images

* update readme

* mark generated hero images

* Improve readme

Co-authored-by: Weston Ruter <westonruter@google.com>

Co-authored-by: Weston Ruter <westonruter@google.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants