Reduce flickering with dark/light theme #1241
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "reduceflicker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It should at least fix going
dark -> light -> dark
whenprefers-color-scheme
was set todark
and user changed to light theme and then back to dark using a switch.It can probably fix other flickering as JavaScript used for loading theme set by using a switch is now loaded at the top of
<body>
, I guess.Deploy preview for privacytools-io ready!
Built with commit
ec8877a28d
https://deploy-preview-1241--privacytools-io.netlify.com
I still don't understand the code though, but the description sounds good