CSS, Lazy Loading, JavaScript, Tutorial, Javascript Tips.
Image(); lazy.onload = function() { img.src = lazy.src; img.style.paddingTop = 0; img.classList.remove('loading'); img.classList.add('loaded'); } return { load: load } function load() { img.classList.add('loading'); lazy.src = img.getAttribute('data-src'); } } var img =