Problem/Motivation
Flash of unstyled content occurs some of the time, especially when the server is a bit too slow to respond, and is even worse with CSS aggregation enabled when removing unused stylesheets only to add the new aggregates that contain a lot of the same styles.
See https://github.com/hotwired/turbo/issues/1131
Steps to reproduce
See above.
Proposed resolution
We've patched Turbo to delay removing stylesheets if rendering is paused (e.g. for a page transition), but this is left up to the theme to do; perhaps this is an argument for adding a transition and delay by default and allowing themes or other modules to opt out if desired?
Remaining tasks
TBD.
User interface changes
No more FOUC.
API changes
None?
Data model changes
None.
Issue fork refreshless-3488459
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #9
ambient.impactAfter some significant work and testing, I think I've basically fixed FOUC under most circumstances.
Comment #11
ambient.impact