Commit 7d635ce
committed
fix: show LoadingOverlay during CDN metadata fetch, not just template load
Root cause: the LoadingOverlay lives inside WebIframe, which only mounts
after defaultWebPreviewFile is set (i.e. after metadata finishes fetching).
During the CDN metadata fetch window there is no WebIframe in the tree at
all, so no loading indicator is visible. Additionally, once the CDN bundle
is browser-cached the template renders in ~2 rAFs which is imperceptible.
Fix: import LoadingOverlay into ExampleContent and render it directly on
the preview-wrap-content panel with visible={!initState}. This covers the
entire metadata-fetch phase. The WebIframe's own overlay continues to
handle the subsequent template-load phase, giving a seamless indicator
from the moment the CDN version is requested until the frame is painted.1 parent 2a94a1b commit 7d635ce
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
345 | 349 | | |
346 | 350 | | |
347 | 351 | | |
| |||
0 commit comments