-
Notifications
You must be signed in to change notification settings - Fork 391
Description
Although it's great that we have fixed the FOUC on reload #1325 (really a flash of wrong stylesheet), we now have a true FOUC when clicking the toggle on Chrome and Safari (but not Firefox).
Chrome and Safari always think they need to load the re-enabled stylesheet, no matter that they already loaded it in this session. There are a number of ways to disable the inactive stylesheet, but apparently none let it stay loaded.
I wouldn't be surprised if there is a way to wait until the new stylesheet is loaded before disabling the old one, but I don't know it today. As an experiment, I tried a timeout before disabling the old, and it's more fluid (if janky in other ways, not suggesting this approach).
Hope to return to this in this release, since it's annoying and the toggle is the UI for Dark Mode, but this is not as important as other stuff.