CSS, Lazy Loading, JavaScript, Tutorial, Javascript Tips.
the “lazyLoad” function above. Start lazy loading images immediately document.querySelectorAll('img[data-src]').forEach(img => lazyLoad(img).load()); Wait for DOMContentLoaded document.querySelectorAll('img[data-src]').forEach(img => { var load = lazyLoad(img).load;