This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Issue with Lazy Loading of images

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

#25002
Ernest MarcinkoErnest Marcinko
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.