-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Google Chrome is officially launching Native Lazy Loading in Chrome 75+ and they have created a new attribute called loading.
Example of the Google Spec will be like this:
<!-- Lazy-load an offscreen image when the user scrolls near it -->
<amp-img src="/static/samples/img/amp.jpg"
width="1080"
height="610"
layout="responsive"
alt="AMP"
loading="lazy"></amp-img>
<!-- Load an image right away instead of lazy-loading -->
<amp-img src="/static/samples/img/amp.jpg"
width="1080"
height="610"
layout="responsive"
alt="AMP"
loading="eager"></amp-img>
<!-- Browser decides whether or not to lazy-load the image -->
<amp-img src="/static/samples/img/amp.jpg"
width="1080"
height="610"
layout="responsive"
alt="AMP"
loading="auto"></amp-img>Please can you add the attribute to the whitelist and add it to the AMP Core.
Thanks.
Reactions are currently unavailable