[RESOLVED] Any way to resolve dark mode page flicker navigating between pages? #4379
gacharles23
started this conversation in
General
Replies: 2 comments 4 replies
-
Are you having this in production or just in development? If it's just in development, it's likely due to how Vite is plopping the styles onto the page. In development, it'll plop all the styles inside a |
Beta Was this translation helpful? Give feedback.
4 replies
-
I followed the instructions, but why the problem still occurred? still flickering. I use daisyui and theme-changer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to avoid page flicker using Edge pages in dark mode (Tailwind) when navigating between pages? Currently I’m using Javascript in the page header to set (and maintain) the theme using local storage. On-page updates with HTMX don't cause any flicker (since only portions of the page are being replaced), but navigating from one page to another (in dark mode) leads to the dreaded FOUC on each transition. Is this a limitation of using Edge for the front-end? It would be great if there was a way to solve this as I'd love to stick with Edge.
Beta Was this translation helpful? Give feedback.
All reactions