Commit e84f59d
committed
Hide body while custom elements load
Reduce FOUCE (Flash Of Undefined Custom Elements)[^1].
Waits until all global custom elements (icon, flash, button,
message and spinner) are defined and fades in the body.
If the custom elements are not defined after 1.25s fade in
body anyway.
[^1]: https://www.abeautifulsite.net/posts/flash-of-undefined-custom-elements
(cherry picked from commit 83830ba)
# Conflicts:
# app/assets/builds/alchemy/admin.css
# app/assets/builds/alchemy/admin.css.map1 parent 2f15329 commit e84f59d
File tree
5 files changed
+25
-3
lines changed- app
- assets
- builds/alchemy
- stylesheets/alchemy/admin
- javascript/alchemy_admin/components
- views/layouts/alchemy
5 files changed
+25
-3
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments