IntersectionObserver has made lazy loading a lot easier and more efficient than it used to be, but to do it really right you still gotta remove the
src and such, which is cumbersome. It’s definitely not as easy as:
<img src="celebration.jpg" loading="lazy" alt="..." />
Addy Osmani says it’s coming in Chrome 75:
loadingattribute allows a browser to defer loading offscreen images and iframes until users scroll near them.
loadingsupports three values:
lazy: is a good candidate