Attempt to fix FOUC
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m50s

This commit is contained in:
2026-02-25 16:29:29 -07:00
parent 75321034aa
commit 4cbe911b0c
2 changed files with 8 additions and 1 deletions

BIN
public/fonts/roboto.woff2 Normal file

Binary file not shown.

View File

@@ -65,6 +65,13 @@ const isProd = import.meta.env.PROD;
<meta property="og:image:alt" content={resolvedOgImage.alt} /> <meta property="og:image:alt" content={resolvedOgImage.alt} />
<meta name="theme-color" content="#ffffff" /> <meta name="theme-color" content="#ffffff" />
<link rel="canonical" href={siteUrl} /> <link rel="canonical" href={siteUrl} />
<link
rel="preload"
as="font"
type="font/woff2"
href="/fonts/roboto.woff2"
crossorigin
/>
<title>{metaTitle}</title> <title>{metaTitle}</title>
{ {
isProd && ( isProd && (
@@ -87,7 +94,7 @@ const isProd = import.meta.env.PROD;
) )
} }
</head> </head>
<body class="min-h-screen flex flex-col bg-base-100 font-sans antialiased"> <body class="min-h-screen flex flex-col bg-base-100 antialiased">
<Header /> <Header />
<main class="grow flex flex-col"> <main class="grow flex flex-col">
<slot /> <slot />