Tomasz B Posted March 23, 2019 Share Posted March 23, 2019 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 More sharing options...
tantan199 Posted March 24, 2019 Share Posted March 24, 2019 I've a free module for that, check it out here https://www.sunnytoo.com/10743/free-prestashop-1-7-lazy-loading-module-for-product-images-to-speed-site 1 Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted March 25, 2019 Share Posted March 25, 2019 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 2 Link to comment Share on other sites More sharing options...
evropol Posted April 14, 2019 Share Posted April 14, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now