Skip to content

Remove loading=lazy attribute from iframes#3941

Merged
westonruter merged 3 commits intodevelopfrom
fix/3939-prevent-lazy-loaded-iframe
Dec 17, 2019
Merged

Remove loading=lazy attribute from iframes#3941
westonruter merged 3 commits intodevelopfrom
fix/3939-prevent-lazy-loaded-iframe

Conversation

@pierlon
Copy link
Copy Markdown
Contributor

@pierlon pierlon commented Dec 17, 2019

Summary

This PR removes the loading="lazy" attribute when sanitizing iframes as amp-iframe already has lazy loading built-in. All other values for the loading attribute are to result in validation errors.

Fixes #3939.

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@googlebot googlebot added the cla: yes Signed the Google CLA label Dec 17, 2019
@pierlon pierlon requested a review from westonruter December 17, 2019 01:18
@westonruter westonruter added this to the v1.5 milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent loading=lazy from being copied from iframe to amp-iframe since invalid (and built-in)

3 participants