Native Lazy Loading
Hey, did you know that many web browsers have native lazy loading for images now? You can use it by adding an attribute to your image tags:
That's it! Instead of loading every image when the page loads the browser will wait until it's needed. Efficient!
Today I added it here and if you scroll very quickly through a page like this with lots of photos, you'll catch them loading as needed.
loading="lazy"
That's it! Instead of loading every image when the page loads the browser will wait until it's needed. Efficient!
Today I added it here and if you scroll very quickly through a page like this with lots of photos, you'll catch them loading as needed.