Commit caccb8a
authored
fix: Faster theme loading to avoid flickering (#3062)
The `tubo:load` event is faster than the migration event. The color changing requires no sprocket code and can be controlled without the migration event. This removes the flickering in dark mode when navigating the page.
This change is possible because the theme-changing logic was moved to Webpacker and loads before Sprockets. Please see #3025
Related to #30401 parent ffef585 commit caccb8a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments