Commit 6167675
authored
Reduce flashing on page load (#359)
Currently, this is done by setting the background to the theme
preference (light/dark). This will stop working once we have a switch
to toggle between light and dark mode.
It was tempting to move the JS to executing earlier, but it needs to
be executed once the document elements are in place (for shortcuts
etc.).1 parent 028f302 commit 6167675
File tree
3 files changed
+15
-3
lines changed- assets
- js
- theme-css
- layouts/_default
3 files changed
+15
-3
lines changedFile renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
1 | 14 | | |
2 | 15 | | |
3 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 38 | | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
0 commit comments