avoid FOUC in tabs on update/reload

This commit is contained in:
tophf 2021-03-19 19:00:37 +03:00
parent 21d902c48c
commit 35e0a9d032

View File

@ -252,7 +252,7 @@
// so we need to detach event listeners // so we need to detach event listeners
window.removeEventListener(orphanEventId, orphanCheck, true); window.removeEventListener(orphanEventId, orphanCheck, true);
isOrphaned = true; isOrphaned = true;
styleInjector.clear(); setTimeout(styleInjector.clear, 1000); // avoiding FOUC
tryCatch(msg.off, applyOnMessage); tryCatch(msg.off, applyOnMessage);
} }
})(); })();