[Docs] Tell hosts to enable compression, and publish the web first-load figure #614
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#614
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in the pre-publication performance review.
Measurement, on
build/web/in this tree:main.dart.js14.1 MB raw / 3.9 MB gzip;canvaskit/canvaskit.wasm7.1 MB / 2.8 MB; plus every font inassets/FontManifest.json(5 variable TTFs, 3.2 MB raw / ~1.6 MB gzip, plus ~0.6 MB KaTeX) which CanvasKit fetches before the first frame; plusassets/privacy/health_lexicon.json(2.0 MB), whichlib/main.dart:74deliberately awaits beforerunApp. Roughly 9 MB compressed, ~25 MB uncompressed before the first paint.docs/HOSTING.md:40-50says "any static host works" and suggestspython3 -m http.server, which serves nothing compressed. No payload figure appears in HOSTING.md ordocs/PERFORMANCE_GUIDE.md.Why this matters now: a web demo is the cheapest way to earn the positive feedback this launch is aiming for, and simultaneously the easiest way to squander it. Anyone following §2 literally serves 25 MB uncompressed and their visitor stares at white for tens of seconds. The hosting guide is otherwise strictly honest about web limitations, so this gap stands out.
Proposal: three lines in HOSTING.md §2 — enable brotli/gzip for
.js,.wasm,.jsonand.ttf; state the measured first-visit figure; warn thatpython3 -m http.serveris for a local check only. One line in PERFORMANCE_GUIDE under Measured figures with the same number and a date.Opgelost in #656 (gemerged).
make checkgroen op de gerebasede kop.