Flickering theme icon when navigating #932
Labels
bug
Something isn't working
low priority
No hurry, this can wait.
UI / UX
Affects the UI and UX of app
When navigating between pages using dark mode, we can see the moon icon showing for a split second and then change to the sun icon. This is due to the fact that we're changing the icon based on a cookie client-side in a non-blocking JS file (main.js, line 44).
I see two possible solutions:
hidden
class based on the cookie in the template rather than in a separate JS file, so it'll run on the server instead of the client, similar to how we add the colors to the heatmap (we havetheme
as a global variable available for that).The text was updated successfully, but these errors were encountered: