cl01/wp-content/plugins/enlighter/resources/extensions/jetpack-infinite-scroll.js
2025-02-24 12:39:24 +08:00

20 lines
507 B
JavaScript
Executable File

// scope
(function(_window){
// jquery available ?
if (typeof jQuery === "undefined"){
return;
};
// content update event
jQuery(document.body).on('post-load', function(){
// enlighterJS available ?
if (typeof EnlighterJSINIT === "undefined"){
return;
}
// delay action to allow event handlers to be added
_window.setTimeout(function(){
EnlighterJSINIT.apply(_window);
}, 180);
});
})(window);