Split asset budgets into transfer and storage and gate them in check:full
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m42s
Validate and deploy Sokko G / deploy (push) Successful in 15s

The new dragon illustrations pushed the cold home page to 1,754,467 bytes,
over its 1.75 MB budget. The home dragon is re-encoded at quality 88 and
the sidebar dragon resized to 268 px, twice its displayed width, at
quality 92, with SSIM above 0.994: the home page is back to about 1.71 MB.

The 25 MB cap measured the images stored in the repository, which are
not downloaded on each visit. The profile now separates transfer budgets
(home, Aniimo, CSS gzip at 100 kB pending the CSS split) from storage,
which reports images per folder and caps each file at 1 MB. npm run
test:assets applies them in check:full on the production build, so a
breach blocks delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-21 13:03:46 +01:00
parent 2f02c761a8
commit 26984bb6c0
8 changed files with 79 additions and 25 deletions

View file

@ -74,6 +74,10 @@ change affects persisted data, imports, user interaction or delivery.
`server.mjs`, Sokko TCG disabled. It catches build-only behavior, stale-bundle
recovery and anything the Node server's CSP blocks, such as `eval` in a tool.
It does not exercise headers added by the production proxy.
- `npm run test:assets` mesure ce même build servi par `server.mjs` : transfert
de l'accueil et d'Aniimo, taille gzip du CSS et poids de chaque image stockée.
`check:full` l'exécute après `test:e2e:production`, dont il réutilise le build.
Les plafonds et le protocole sont dans [PERFORMANCE.md](PERFORMANCE.md).
- `npm run test:e2e:cards` construit l'application puis lance `server.mjs` avec
une base SQLite temporaire, la connexion de test et Sokko TCG activé. Il
valide la reprise d'ouverture, l'album, l'administration et le layout à