Files
doona/index.html
T
Zakk 5027029aa3 fix(shell): let a reload wait for the idle warm-up
settle() waited for network idle before a reload, but that heuristic fires in
any 500 ms gap: before a route's own chunks are requested, before the backend
answers and the warm-up starts, and between the warm-up's idle slices, which a
busy machine stretches. A reload then cancelled chunks in flight; WebKit logged
"Unable to preload CSS" or failed the reload with "WebKit encountered an
internal error" (charts.spec.ts DNS and latency tests, dashboard.spec.ts
source meters).

The root now carries data-warm: pending from index.html, running once the
backend accepts the tab, done when every warmed chunk has arrived or failed,
and skip when the backend turns the tab away. The last chunk's start awaits
the batch directly, and all of them start within one shared 3 s idle deadline
instead of 3 s per chunk. settle() waits for done or skip, or for a page that
is not the app. The two charts tests wait for their chart before the first
reload, as later rounds did.
2026-10-05 17:24:46 +11:00

21 lines
1.2 KiB
HTML

<!doctype html>
<html lang="zh-Hant" dir="ltr" data-warm="pending">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'self' http: https: ws: wss:; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https: http:; font-src 'self'">
<title>doona</title>
<meta name="description" content="Static web UI for the daeuniverse native API.">
<link rel="icon" href="/logo.svg">
<link rel="manifest" href="./manifest.webmanifest">
<!-- Default Rose Pine Dawn (light) and Moon (dark) colours: src/ui/styles/palettes/rose-pine.css. -->
<meta name="theme-color" content="#faf4ed" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#232136" media="(prefers-color-scheme: dark)">
<link rel="apple-touch-icon" sizes="180x180" href="./icons/apple-touch-icon.png">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="doona">
</head>
<body><div id="root"></div><script type="module" src="/src/main.tsx"></script></body>
</html>