Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit e80b2f1

Browse files
authored
fix(common): check if readyState is interactive not loaded (#1109)
1 parent a4bf3d9 commit e80b2f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/common/src/state-transfer-initializer

modules/common/src/state-transfer-initializer/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function domContentLoadedFactory(doc: Document) {
1515
doc.removeEventListener('DOMContentLoaded', contentLoaded);
1616
resolve();
1717
};
18-
if (doc.readyState === 'complete' || doc.readyState === 'loaded') {
18+
if (doc.readyState === 'complete' || doc.readyState === 'interactive') {
1919
resolve();
2020
} else {
2121
doc.addEventListener('DOMContentLoaded', contentLoaded);

0 commit comments

Comments
 (0)