CSS, Lazy Loading, JavaScript, Tutorial, Javascript Tips.
document.querySelector('img[data-src]'); var load = lazyLoad(img).load; // Wait for some kind of event. In this example I'm using "window.load" window.addEventListener('load', load); And we’re done. This is all you need to lazy load images. I’ve included some extra examples below, their all using