I integrated lazyload on an magento layered navigation page. First page load runs well, but when I use navigation no more images are shown.
This is propably due to the ajax call updating instead of reloading the page.
Here's my question:
Is there any event on the end of the ajax load I can use triggering the lazyload function?
1 Answer 1
I suggest you check this explanation: http://www.appelsiini.net/projects/lazyload/enabled_ajax.html
Basically you'll have to reset the lazyload once the AJAX layered navigation load has been done so lazyload is reset on the new images.
Depending on the system you're using for your AJAX layered navigation, you'll have to change the JavaScript in order to get it working.
-
Yes, I saw this already. But I don't know how to apply that to a standard magento theme. What's the right id instead of
#container? And what do I have to use instead ofimages.htmlBernhard Prange– Bernhard Prange2016年01月13日 21:26:22 +00:00Commented Jan 13, 2016 at 21:26 -
As I said, it depends on your AJAX layered navigation module, not really on the theme.Raphael at Digital Pianism– Raphael at Digital Pianism2016年01月14日 08:22:00 +00:00Commented Jan 14, 2016 at 8:22