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:
+5
-4
@@ -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)" />
|
||||
|
||||
Reference in New Issue
Block a user