_observe_imgs(); // When an ajaxified WPP widget loads, // Lazy load its images document.addEventListener('wpp-onload', function(){ wpp_observe_imgs(); }); });