Native Lazy Loading

added by JavaScript Kicks
4/8/2019 11:30:27 PM

272 Views

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: Addy Osmani says it's coming in Chrome 75: The loading attribute allows a browser to defer loading offscreen images and iframes until users scroll near them.


0 comments