Preload the fonts the design actually uses

The document still preloaded the Archivo file the old design used, which is now
gone: a 404 on every page load. It preloads Playfair Display and Plus Jakarta
Sans instead, and the asset test names a font that exists.
This commit is contained in:
tanshu committed 2026-09-22 23:07:59 +05:30
1 parent b13042f0db
commit b6f05f6828
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -34,7 +34,14 @@ export function renderDocument(input: DocumentInput): Html {
<link rel="icon" href="${logo}" />
<link
rel="preload"
href="/assets/fonts/archivo-latin.woff2"
href="/assets/fonts/playfair-display-latin.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="/assets/fonts/plus-jakarta-sans-latin.woff2"
as="font"
type="font/woff2"
crossorigin