lazySizes.loader.unveil(imgElem) Method does not show all images in page
TunaFFish opened this issue · 1 comments
TunaFFish commented
var lazyObj = window.lazySizes;
//console.log('window.lazySizes Object: ' + JSON.stringify(lazyObj));
var imgs = document.getElementsByClassName('lazyload');
for (var i = 0; i < imgs.length; i++) {
var img = imgs[i];
lazyObj.loader.unveil(img);
// img.classList.add('lazypreload');
}
The images outside the viewport are not show, I see them loading only when I scroll
TunaFFish commented
Sorry, I realized that your lazysizes was forked over to a Wordpress plugin https://github.com/nosilver4u/ewww-image-optimizer/ where I can not call the Method. On your example page it work fine!