Summary
Dark mode users experience a white flash during initial page load because the theme is applied only after hydration completes.
Contexts
The current theme initialization runs after the page has already rendered once, causing the browser to briefly display light mode before switching to dark mode.
This behavior is noticeable during hard refreshes and slower page loads, especially when dark mode is stored in localStorage or inferred from system preferences.
Tasks
Acceptance Criteria
Area
web
Difficulty
Easy to Intermediate — requires understanding of theme initialization and hydration timing.
Summary
Dark mode users experience a white flash during initial page load because the theme is applied only after hydration completes.
Contexts
The current theme initialization runs after the page has already rendered once, causing the browser to briefly display light mode before switching to dark mode.
This behavior is noticeable during hard refreshes and slower page loads, especially when dark mode is stored in
localStorageor inferred from system preferences.Tasks
Acceptance Criteria
Area
webDifficulty
Easy to Intermediate — requires understanding of theme initialization and hydration timing.