Web200 / magento2-elasticsuite-ajax

Add Elasticsuite ajax navigation
23 stars 8 forks source link

Lazy Load doesn't work after filter #7

Closed ely-fornoville closed 3 years ago

ely-fornoville commented 3 years ago

After installing the plugin it seems that Lazy Load of our product images on the category pages doesn't work anymore after filtering. Once the AJAX loads new products Lazy Load loading icon keeps loading but no product images are shown.

Is there a fix for this?

Kind regards Ely

kpitn commented 3 years ago

Hi,

The module call after loading page : $(document).trigger('contentUpdated');

So you can call you lazyload like this :

$('body').on('contentUpdated', function() {
    yourLazyloadJs.update();
});