Dark mode toggle resets after navigating between spaces

Aisha Khan Aisha Khan 1 month ago

When I enable dark mode and then click into a different space, the page loads in light mode for a split second before switching back. On slower connections it stays light.

Looks like the preference isn't applied before first paint.

3

Tried this on a staging copy first and it behaved exactly as described. Confident enough to roll it to production now.

Following this thread closely. We are about to face the exact same decision and the replies here are gold.

Thanks for writing this up. Bookmarking it — the kind of thing I will want to reference again in a month.

I respectfully disagree on one detail. In my setup the opposite held true, though I suspect it comes down to community size.