@gopherium/godmin 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -73,6 +73,15 @@ When it shows and where it sits depend on what is around it:
|
|
|
73
73
|
height of the window, as the frame is. So the spinner sits in the
|
|
74
74
|
middle of the window.
|
|
75
75
|
|
|
76
|
+
## Before the script runs
|
|
77
|
+
|
|
78
|
+
Until your script runs, the browser shows only what your `index.html`
|
|
79
|
+
holds. Leave its root element empty and give the page no style of its
|
|
80
|
+
own, as the WordPress Site Editor leaves its root empty until its
|
|
81
|
+
script runs. The window stays blank. Then `LoadingScreen` outside the
|
|
82
|
+
frame waits and fades in as above, so a fast start shows nothing at
|
|
83
|
+
all.
|
|
84
|
+
|
|
76
85
|
## A preview whose shape is known
|
|
77
86
|
|
|
78
87
|
Some parts know their size before their data arrives, such as an
|
|
@@ -49,6 +49,10 @@ decides how it shows:
|
|
|
49
49
|
it gets. The wait lives in the stylesheet, so your code needs no
|
|
50
50
|
timer.
|
|
51
51
|
|
|
52
|
+
Before your script runs, the browser shows only your `index.html`.
|
|
53
|
+
[Before the script runs](./design-system/loading.md#before-the-script-runs)
|
|
54
|
+
says what it holds.
|
|
55
|
+
|
|
52
56
|
Inside a `Page` a load that is often fast can show the spinner for a
|
|
53
57
|
moment. To keep the old page on screen instead, let the route loader
|
|
54
58
|
wait for the small data the screen needs, as
|
package/package.json
CHANGED