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 17, 2019 at 5:33 pm
#25076
Keymaster
Well, maybe the DOMSubtreeModified will do the trick. That is definitely triggered when the content changes.
jQuery(function($) {
var t;
$('body').on("DOMSubtreeModified", function(event, id, instance, phrase) {
clearTimeout(t);
setTimeout(function(){
$(window).scroll();
$(document).scroll();
}, 250);
});
});