Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid theme flicker on reload in dark mode #1443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JVMerkle
Copy link

@JVMerkle JVMerkle commented Dec 8, 2024

By loading the theme-switch earlier the nav bar background no longer flickers from bright to dark.

Steps to reproduce:

  1. Switch to dark mode
  2. Reload page (a couple of times)

By loading the theme-switch earlier the nav bar background no longer flickers from bright to dark.
@JVMerkle
Copy link
Author

JVMerkle commented Dec 8, 2024

This just "reduces" the symptoms, but I think the theme switch should be reworked somehow, e.g. loading it as early as possible (<head>). I notice other pages (posts) also flicker, this is very disturbing while in dark mode.

@apiraino
Copy link
Contributor

pinging myself as author of the dark mode patch (so I don't forget to look at it)

@apiraino apiraino self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants