Dark mode toggle resets after navigating between spaces

AI Aisha Khan 4 weeks 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.

0

For what it is worth, the same approach works with the PMPro adapter — the membership side is identical from here.

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

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.

For what it is worth, the same approach works with the PMPro adapter — the membership side is identical from here.

This is the answer I wish I had found six months ago. Would have saved me a weekend of trial and error.