mirror of
https://github.com/zadam/trilium.git
synced 2026-09-14 11:06:04 +05:00
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:
parent
08061f5692
commit
a3ef796239
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user