-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Component: amp-imgCustomer: DeveloperP2: SoonType: DevXissues impacting developer experienceissues impacting developer experienceType: Feature RequestWG: components
Description
When using loading attribute on <img> tag AMP validator fails with following message:
The attribute 'loading' may not appear in tag 'img'. (see https://amp.dev/documentation/components/amp-img)
Code:
<amp-img src="https://example.com/image.png" alt="Example" layout="fill">
<noscript>
<img src="https://example.com/image.png" alt="Example" loading="lazy">
</noscript>
</amp-img>I use <noscript> as fallback for users with disabled JavaScript and some kind of crawlers who can't execute <amp-img> element (as described in docs example: https://amp.dev/documentation/examples/components/amp-img/#no-script)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: amp-imgCustomer: DeveloperP2: SoonType: DevXissues impacting developer experienceissues impacting developer experienceType: Feature RequestWG: components