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)
This only works on chrome, can't really use it for clients