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.
« Previous post / Next post »
Hi! You're reading a single post on a weblog by Paul Bausch where I share recommended links, my photos, and occasional thoughts.