We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 545c8ac commit d6478c1Copy full SHA for d6478c1
src/index.ts
@@ -84,14 +84,11 @@ function checkClientHints() {
84
}
85
86
if (cookieChanged) {
87
- // Stop all resource loading and DOM processing to prevent FOUC
88
- if (window.stop) window.stop();
89
-
90
// Hide the page content immediately to prevent visual flicker
91
const style = document.createElement('style');
92
style.textContent = 'html { visibility: hidden !important; }';
93
document.head.appendChild(style);
94
+
95
// Trigger the reload
96
window.location.reload();
97
0 commit comments