wiki/apps
Philip Okugbe 00226f6b93
fix: client asset chunk prefetch (#2582)
* fix(client): reload once when a lazy chunk fails to load

* fix(client): show a fallback instead of a blank page when a route crashes

* fix(server): return 404 for missing client assets instead of the app shell

* fix(server): mark the missing-asset 404 as no-store

* fix(client): skip chunk reloads while offline and widen the cooldown

* perf(client): add lazyRoute and a background route prefetch

* perf(client): prefetch every route in the background after startup

- replaces the 3 s editor warm-up
- skipped on share, public docs and PDF render pages, and with Data Saver on

* fix(client): only auto-reload when a chunk fails to download

- an error thrown while a route module runs no longer reloads the tab, so a broken route can't reload every new tab once routes are prefetched

* fix(client): don't reload the tab when a background route prefetch fails

- the route recovers when it is actually opened, so a prefetch failure no longer reloads mid-edit or replaces a navigation in progress

* perf(client): skip route prefetch on OAuth consent and in dev

* perf(client): prefetch non-route lazy components in the background

* fix(client): stop the prefetch on failure and retry the stylesheets it failed to load

* perf(client): prefetch the page editor before other lazy components
2026-10-15 17:10:13 +01:00
..
client fix: client asset chunk prefetch (#2582) 2026-10-15 17:10:13 +01:00
server fix: client asset chunk prefetch (#2582) 2026-10-15 17:10:13 +01:00