Home / Engineering / Performance budgets and precompression
Performance budgets and precompression
A byte budget per page template checked before every push, versioned static files cached as immutable, and Brotli quality 11 copies of the largest public JSON files, built and checked (serving switched off for now, see below).
Updated 21 Nov 2026
Budget per template
| Template | HTML over the wire | Scripts | Styles | Requests | Within budget |
|---|---|---|---|---|---|
| Home | 27 KB / 31 KB | 50 KB / 55 KB | 44 KB / 49 KB | 5 / 6 | yes |
| Project page | 29 KB / 32 KB | 77 KB / 83 KB | 44 KB / 49 KB | 9 / 9 | yes |
| Project page (Arabic) | 44 KB / 48 KB | 77 KB / 83 KB | 44 KB / 49 KB | 9 / 9 | yes |
| Market page | 27 KB / 27 KB | 65 KB / 71 KB | 46 KB / 51 KB | 10 / 11 | no |
| Project list | 74 KB / 77 KB | 73 KB / 79 KB | 44 KB / 49 KB | 7 / 8 | yes |
| Developer page | 27 KB / 29 KB | 50 KB / 55 KB | 44 KB / 49 KB | 5 / 6 | yes |
| Rankings | 19 KB / 21 KB | 52 KB / 57 KB | 44 KB / 49 KB | 6 / 7 | yes |
| Engineering | 13 KB / 14 KB | 57 KB / 62 KB | 44 KB / 49 KB | 7 / 8 | yes |
Measured 21 Nov, 09:15 UTC from a build machine with Brotli accepted; budget in the small grey figure.
Brotli quality 11 copies of large JSON
Cloudflare compresses on the fly at a fast setting. For the largest files we publish a copy at Brotli quality 11 (the slowest, smallest setting) with its source SHA-256. The worker sends the copy only to browsers that accept br and only while the file it would serve still has that hash; after a data refresh it falls back to the normal file until the copy is rebuilt.
Status 21 Nov 2026: serving the copies is switched off. In the first test the platform compressed the copy a second time on the way out, so browsers would have received unreadable data; the copies, their hashes and the check stay in place and are tested with a header before they are turned on.
| File | Raw | Brotli 11 | Saved | Served from the copy |
|---|---|---|---|---|
named.json | 7,787 KB | 899 KB | 88.5 % | no |
bali-cases.json | 3,241 KB | 93 KB | 97.1 % | no |
claims-index.json | 2,946 KB | 586 KB | 80.1 % | no |
price-history.json | 2,234 KB | 250 KB | 88.8 % | no |
site-3d.json | 1,501 KB | 492 KB | 67.2 % | no |
website-changes.json | 796 KB | 134 KB | 83.2 % | no |
entity-graph.json | 344 KB | 88 KB | 74.6 % | no |
construction-index.json | 127 KB | 25 KB | 80.1 % | no |
catalog.json | 432 KB | 31 KB | 92.8 % | no |
world-claims.json | 423 KB | 6.2 KB | 98.5 % | no |
similar.json | 294 KB | 42 KB | 85.7 % | no |
delta/by-project.json | 138 KB | 22 KB | 84.3 % | no |
tlog/index.json | 5.8 KB | 2.4 KB | 59.4 % | no |
curl -sI -H "accept-encoding: br" https://kolaboro.com/data/named.json | grep -i "content-encoding\|x-kolaboro-precompressed"Immutable static files
Every script and stylesheet the templates load carries a version in its URL (?v=). Those answers say Cache-Control: max-age=31536000, immutable, so a returning visitor never asks for them again; a new version gets a new URL.
Checked before every push
The pre-push hook (/open/pre-push.sh) adds the raw bytes of the static scripts each template loads, read from the commit being pushed, and warns when a template passes its budget. Like the rest of that hook it reports and does not block. The live measurement above is repeated with n34c-build.py perf.
python3 _s/kolaboro.com/open/n34c-build.py budget HEAD
python3 _s/kolaboro.com/open/n34c-build.py perf- /open/perf-budget.json 2026-11-21
- /data/perf-budget.json JSON
- /data/br/manifest.json JSON
- /open/n34c-build.py Python
- /open/pre-push.sh sh
Page weight history · Early Hints