fix: revert font-display to swap so DM Serif hero loads bold
display=optional gave browsers only ~100ms to fetch DM Serif Display before sticking with the system serif fallback — on any uncached visit that meant the hero "Deepstock" title rendered thin (system serif at weight 400) and never swapped to the thick display font. Back to display=swap: brief FOUT on first paint, but the bold serif is what users actually see. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,10 +6,7 @@
|
||||
<title>Deepstock — Survival Preparedness Advisor</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com"/>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
|
||||
<!-- font-display=optional: render with system fallback, swap to webfont
|
||||
only if it's already cached. Eliminates the visible bold-flash that
|
||||
`display=swap` was causing on first paint. -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Serif+Display&family=Barlow:wght@300;400;500;600&display=optional" rel="stylesheet"/>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Serif+Display&family=Barlow:wght@300;400;500;600&display=swap" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user