87968: Lift readyState complete check from Universal 12

This commit is contained in:
Yura Bondarenko
2022-03-18 10:19:25 +01:00
parent ae89571519
commit 47c8ca7342

View File

@@ -47,7 +47,7 @@ const main = () => {
};
// support async tag or hmr
if (hasValue(environment.universal) && !environment.universal.preboot) {
if (document.readyState === 'complete' && hasValue(environment.universal) && !environment.universal.preboot) {
main();
} else {
document.addEventListener('DOMContentLoaded', main);