Jump to content

Lazyload with ajax pagination - Prestashop 1.7


Tomasz B

Recommended Posts

Hi, 

I need a little of help.

I implemented lazyload script into footer. Script starts on document event listener DOMContentLoaded.

Lazyload works correctly, but problem is on category pages with ajax pagination. I don't know how to execute script after changing page of products with ajax. 

I will be very gratefull for any help.

Tomasz

Link to comment
Share on other sites

On 3/23/2019 at 10:37 PM, Tomasz B said:

Hi, 

I need a little of help.

 I implemented lazyload script into footer. Script starts on document event listener DOMContentLoaded.

 Lazyload works correctly, but problem is on category pages with ajax pagination. I don't know how to execute script after changing page of products with ajax. 

 I will be very gratefull for any help.

Tomasz

Hi...
use your js file in this presashop event 

 

prestashop.on('updateProductList', 'your_js_callback'); 

Thanks

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
On 3/25/2019 at 11:58 AM, Nishith said:

Hi...
use your js file in this presashop event 

 


prestashop.on('updateProductList', 'your_js_callback'); 

Thanks

hello @Nishith. Can you help with prestashop 1.6 version?

my question

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...