Renderer: Use native <img>
instead of <amp-img
#10213
Labels
Group: Blocks
Issues related to the provided Gutenberg Blocks
Group: Widgets
Issues related to the provided WordPress widgets
Group: WordPress
Changes related to WordPress or Gutenberg integration
Type: Enhancement
New feature or improvement of an existing feature
Feature Description
With
amp-img
being deprecated in favor of nativeimg
(ampproject/amphtml#30442), we can now finally stop usingamp-img
by default.The AMP plugin v2.3 (coming out soon) will make the switch as well. See ampproject/amp-wp#6805
We're currently using
amp-img
here:https://github.com/google/web-stories-wp/blob/e7cb5fe4dee961dbfc318dbc7b3c75b3373b6a02/includes/Renderer/Stories/Renderer.php#L594-L613
We should:
img
onlyloading="lazy"
anddecoding="async"
forimg
amp-img
Alternatives Considered
Additional Context
Note: This does not apply to stories, i.e.
<amp-story>
remains unaffected.The text was updated successfully, but these errors were encountered: