Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Issue with Lazy Loading of images › Reply To: Issue with Lazy Loading of images
December 12, 2019 at 10:09 am
#25002
Keymaster
Hi,
Well, it depends on how the lazy loader is implemented and what triggers the refershing of the images. Maybe the document/window scrolling?
Based on the plugin javascript API, you could perhaps construct a custom code to trigger the correct event once the search is finished. Something like this:
jQuery(function($) {
$(".asp_main_container").on("asp_search_end", function(event, id, instance, phrase) {
setTimeout(function(){
$(window).scroll();
$(document).scroll();
}, 250);
});
});
..however I am just guessing that either of these will trigger the lazy loader, it might work different ways.