Loading…
← Back to overview
2
Page with loading
The page handler sleeps 800ms to simulate a slow data fetch. While the page is being computed,
the framework streams loading.html in its place. Once the page resolves,
an inline script swaps the loading shell out for the real content — no client-side framework involved.
Files
page + loadingapp/with-loading/page.rs— sleeps 800ms then rendersapp/with-loading/page.html— this templateapp/with-loading/loading.rs— renders the loading shellapp/with-loading/loading.html— spinner shown while the page resolves