function _checkImages(){var e,t=window.scrollY,n=t+window.innerHeight;document.querySelectorAll("img[data-src]").forEach(function(i){(e=i.getBoundingClientRect()).top+i.clientHeight>=t&&e.top<=n+i.clientHeight&&(i.setAttribute("src",i.getAttribute("data-src")),i.onload=function(){i.removeAttribute("data-src")})})}window.addEventListener("scroll",function(e){_checkImages()}),window.addEventListener("resize",function(e){_checkImages()});_checkImages();