check content update javascript Magento 2
-
08-03-2021 - |
Question
I have changed content to next page in category page in magento by https://infiniteajaxscroll.com/docs/methods.html
I try to check content of list update by this function:
$('.category-products .products.list').change(function () {
console.log('list update');
});
It doesn't work for me.
Solution
There is a free extension available for infinite scroll. Please take reference from the code of this extension. Please find the repo of extension below:
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange