Performance: Inter-Font auf 60KB Subset reduziert (vorher 344KB)

- Font Subsetting mit fonttools für Latin + German Zeichen
- 83% Reduktion der Font-Datei
- PageSpeed API Script hinzugefügt

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-05 23:05:09 +01:00
co-authored by Claude Opus 4.5
parent 61c7c523ab
commit 090d640e9a
4 changed files with 190 additions and 4 deletions
+5 -4
View File
@@ -107,13 +107,14 @@
}
}
/* Font-Loading Optimierung */
/* Font-Loading Optimierung - Subset für Latin + German */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/inter-var.woff2') format('woff2-variations');
src: url('/fonts/inter-subset.woff2') format('woff2-variations');
unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
body {
@@ -121,8 +122,8 @@
}
</style>
<!-- Preload Font -->
<link rel="preload" href="/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>
<!-- Preload Font (60KB subset statt 344KB vollständig) -->
<link rel="preload" href="/fonts/inter-subset.woff2" as="font" type="font/woff2" crossorigin>
<!-- Preload wichtiger Assets -->
<link rel="preload" href="/portrait-224.webp" as="image" type="image/webp" fetchpriority="high" media="(max-width: 640px)" />