DEV Community

Cover image for Image lazy load Just with HTML
Marouane Etaraz
Marouane Etaraz

Posted on

Image lazy load Just with HTML

What's new ?

New attribute added to img tag that allow lazy loading when its needed.
Just do the following:
<img src="image.png" loading="lazy" />
That it ! 💁 Now let the browser do the work for you 👍.

Note: safari not included

I hope that was useful for all of you 💪

Top comments (1)

Collapse
 
sfleroy profile image
Leroy

This only works on chrome, can't really use it for clients