Dark mode toggle resets after navigating between spaces

aisha aisha 2 months 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.

7

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.

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

One caveat for larger communities: keep an eye on the indexes. At a few thousand rows the difference is night and day.

Could you say more about how you measured the result? I want to try this but I am not sure what success would look like.

Click Any Link Below To Find Out More

This will close in 0 seconds