Black Lives Matter! ✊🏾


The attribute directs the user agent to fetch a resource immediately or to defer fetching until some conditions associated with the element are met, according to the attribute's current state. 2.6.7 Lazy loading attributes

Links about loading

  1. Native image lazy-loading for the web!

    posted on by Addy Osmani

    In this post, we’ll look at the new loading attribute which brings native <img> and <iframe> lazy-loading to the web!. For the curious, here&...

  2. Native lazy-loading for the web

    posted on by Houssein Djirdeh

    This post covers the loading attribute and how it can be used to control the loading of images and iframes.

  3. Can I use... Support tables for HTML5, CSS3, etc

    posted on by Can I use

Code sample

<img data-src="myimage.jpg" loading="lazy" />