perf(website): serve Inter as woff2

style.css loaded the 875 KB ttf with no woff2 alternative, so every visitor
downloaded it. The client vendors the same Inter release -- the two ttf files
were byte-identical, and the READMEs differ only in path prefixes -- so its
349 KB woff2 drops straight in, cutting 525 KB from the first paint.

The italic variable font goes too. Nothing referenced it, and Vite bundles
src/assets by reference, so it never reached the site in the first place.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Elian Doran 2026-08-24 19:47:41 +03:00
parent 08061f5692
commit a3ef796239
No known key found for this signature in database
4 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
@font-face {
font-family: "Inter";
src: url(./assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf);
src: url(./assets/fonts/Inter/Inter-VariableFont_opsz,wght.woff2) format("woff2");
}
:root {