From f3fe4fc717b02bc0aff4283062ce9a4dbebbfe30 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sun, 25 Oct 2020 11:26:33 +0100 Subject: [PATCH] #19 changed the behaviour when we start our scripts --- src/javascript/utils/aniwatchCore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/utils/aniwatchCore.js b/src/javascript/utils/aniwatchCore.js index 1419678..db6c599 100644 --- a/src/javascript/utils/aniwatchCore.js +++ b/src/javascript/utils/aniwatchCore.js @@ -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();