AniwatchPlus/utils/aniwatchCore.js

10 lines
257 B
JavaScript
Raw Normal View History

function executeAfterPreload(func){
let preLoader = document.getElementById('preloader');
let loop = setInterval(() => {
if(preLoader.style.display==="none"){
clearInterval(loop);
func();
}
}, 100);
}