Skip to content

Commit d6478c1

Browse files
authored
Update index.ts
1 parent 545c8ac commit d6478c1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,11 @@ function checkClientHints() {
8484
}
8585
}
8686
if (cookieChanged) {
87-
// Stop all resource loading and DOM processing to prevent FOUC
88-
if (window.stop) window.stop();
89-
9087
// Hide the page content immediately to prevent visual flicker
9188
const style = document.createElement('style');
9289
style.textContent = 'html { visibility: hidden !important; }';
9390
document.head.appendChild(style);
94-
91+
9592
// Trigger the reload
9693
window.location.reload();
9794
}

0 commit comments

Comments
 (0)