Lazy load images and infinite scroll

WP Intense Q & ACategory: Auto Infinite ScrollLazy load images and infinite scroll
Sean O'Brien asked 1 month 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 month 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:

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

So you could have:

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

//do stuff


We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.