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