mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 16:02:03 +00:00
The @font-face rules point at fonts/, which only the optional doona-fonts archive provides, so a UI installed without it requested every Noto slice its text needed and logged a 404 for each. src/fonts.ts now fetches fonts/README once per page load and attaches fonts.css and the language's fonts-tc.css or fonts-sc.css only when it answers. main.tsx starts the check at module load so it overlaps the catalogue fetch, and the catalogue still resolves after its faces are declared and the Latin slice loaded, as it was from the first paint when the faces sat in the page's stylesheet; with font-display: optional, text laid out before the slice arrives keeps the system font. With the archive the faces, unicode ranges and per-glyph loading are unchanged. The probe is a GET so the service worker caches it for offline starts, and its body is read so a worker-relayed response does not hold the request open. The worker no longer caches an HTML response for a build file, so a host that answers missing paths with the page cannot pin the probe to "absent" after the archive is installed.