diff --git a/src/app/ui/Layout.svelte b/src/app/ui/Layout.svelte index 42a85c7..40075be 100644 --- a/src/app/ui/Layout.svelte +++ b/src/app/ui/Layout.svelte @@ -9,6 +9,14 @@ import { ResponsiveProvider } from '$shared/lib'; import { cn } from '$shared/lib'; import { Footer } from '$widgets/Footer'; +/* + Preload the two render-critical interface faces (primary + secondary). + `?url` resolves to the content-hashed path Vite emits, so the binary is + fetched immediately rather than waiting for CSS @font-face discovery. +*/ +import interWoff2 from '../assets/fonts/inter-latin-opsz-normal.woff2?url'; +import spaceGroteskWoff2 from '../assets/fonts/space-grotesk-latin-wght-normal.woff2?url'; + import { type Snippet, onDestroy, @@ -33,36 +41,21 @@ onDestroy(() => themeManager.destroy()); - + - - - - ((e.currentTarget as HTMLLinkElement).media = 'all'))} - /> - GlyphDiff | Typography & Typefaces