-
Notifications
You must be signed in to change notification settings - Fork 95
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
Dark theme shows white background for an instant #83
Comments
It's because the dark mode is implemented in javascript instead of css, which means the browser renders the page with a white background (and everything that goes with it) first, and then runs the javascript which redraws everything with a black background. The solution is to rewrite this in CSS, using |
(actually, if you look at the website on my profile you'll have an example of this implemented, and it's a really tiny website so it shouldn't be too hard to read its CSS & JS code) |
Submit a pull request and I would be happy to approve it :) |
When transitioning from one page to another I can see white background for an instant.
It's a bit hard on the eyes to see this abrupt white flash.
It looks like the flash is more apparent in Firefox. In Chrome is not noticeable most of the times but happens as well sometimes.
I'm not sure if this is an easy thing to fix or it's a browser issue.
The text was updated successfully, but these errors were encountered: