#19 changed the behaviour when we start our scripts

This commit is contained in:
Serraniel 2020-10-25 11:26:33 +01:00
parent f0eebd2803
commit f3fe4fc717
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -88,7 +88,7 @@ function awaitPageLoaded() {
}
let loop = setInterval(() => {
if (preLoader.style.display === "none") {
if (preLoader.style.display === "none" && document.readyState === 'complete') {
clearInterval(loop);
runScripts();