From 35e0a9d0327fd235e2ce14ffee32a4c651c49843 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 19 Mar 2021 19:00:37 +0300 Subject: [PATCH] avoid FOUC in tabs on update/reload --- content/apply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/apply.js b/content/apply.js index 3a2bb2e1..f4ba996f 100644 --- a/content/apply.js +++ b/content/apply.js @@ -252,7 +252,7 @@ // so we need to detach event listeners window.removeEventListener(orphanEventId, orphanCheck, true); isOrphaned = true; - styleInjector.clear(); + setTimeout(styleInjector.clear, 1000); // avoiding FOUC tryCatch(msg.off, applyOnMessage); } })();