Skip to content

Commit a5f13fc

Browse files
Fix client startup rendering when the script runs after the page loaded
1 parent edb68cc commit a5f13fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

node_package/src/clientStartup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,7 @@ export function clientStartup(context: Context): void {
119119

120120
// Other components and stores are rendered and hydrated when the page is fully loaded
121121
document.addEventListener('DOMContentLoaded', renderInit);
122+
} else {
123+
renderInit();
122124
}
123125
}

0 commit comments

Comments
 (0)