Answer the question
In order to leave comments, you need to log in
AJAX + LazyLoad = brakes. How to decide?
Hello! There is an online store, there are filters on the category page, when you switch them, the content changes dynamically. At the same time, the unveil plugin is connected to the page, which loads pictures when scrolling. It so happened that when switching the filter, the page that was loaded was displayed with twists (GIF stub), i.e. Images didn't load on scroll. Fixed it like this:
<script>
$('img').unveil();
$(document).ajaxComplete(function(){
$('img').unveil();
});
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question