Shipping daily
Changelog →

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

7/8templates within budget
14/14static files versioned and immutable
13JSON files with a Brotli copy

Budget per template

TemplateHTML over the wireScriptsStylesRequestsWithin budget
Home27 KB / 31 KB50 KB / 55 KB44 KB / 49 KB5 / 6yes
Project page29 KB / 32 KB77 KB / 83 KB44 KB / 49 KB9 / 9yes
Project page (Arabic)44 KB / 48 KB77 KB / 83 KB44 KB / 49 KB9 / 9yes
Market page27 KB / 27 KB65 KB / 71 KB46 KB / 51 KB10 / 11no
Project list74 KB / 77 KB73 KB / 79 KB44 KB / 49 KB7 / 8yes
Developer page27 KB / 29 KB50 KB / 55 KB44 KB / 49 KB5 / 6yes
Rankings19 KB / 21 KB52 KB / 57 KB44 KB / 49 KB6 / 7yes
Engineering13 KB / 14 KB57 KB / 62 KB44 KB / 49 KB7 / 8yes

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.

FileRawBrotli 11SavedServed from the copy
named.json7,787 KB899 KB88.5 %no
bali-cases.json3,241 KB93 KB97.1 %no
claims-index.json2,946 KB586 KB80.1 %no
price-history.json2,234 KB250 KB88.8 %no
site-3d.json1,501 KB492 KB67.2 %no
website-changes.json796 KB134 KB83.2 %no
entity-graph.json344 KB88 KB74.6 %no
construction-index.json127 KB25 KB80.1 %no
catalog.json432 KB31 KB92.8 %no
world-claims.json423 KB6.2 KB98.5 %no
similar.json294 KB42 KB85.7 %no
delta/by-project.json138 KB22 KB84.3 %no
tlog/index.json5.8 KB2.4 KB59.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

Page weight history · Early Hints

More engineering shipped 21 Nov 2026

Protect my purchase