Skip to content
WP Intense Q & ACategory: Auto Infinite ScrollLazy load images and infinite scroll
. asked 1 year ago

Can I run a lazy-load image plugin with your Auto Infinite Scroll plugin?

I'm using Perfmatters for lazy loading WooCommerce images but most of the other inifinite scroll plugins can't enqueue the lazyload.js after each scroll, so all the images fail to load as you scroll down the page. You know what I mean?

Just wanted to know before I purchased. What do you guys use for lazy loading images?

1 Answers
Dave Hilditch Staff answered 1 year ago

Whatever you want to happen after images are loaded, you can add to the following trigger that runs after auto infinite scroll has loaded a page:

https://i.imgur.com/VqyFXVY.png

The triggered event is named ‘auto-infinite-scroll-complete’.

So you could have:

jQuery(document).on('auto-infinite-scroll-complete', function() {

//do stuff

});

Your Answer


Click to join our Discord community and read the rules for a 20% discount coupon. Coupon usable once per customer only.