Attempt to fix FOUC
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m50s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m50s
This commit is contained in:
BIN
public/fonts/roboto.woff2
Normal file
BIN
public/fonts/roboto.woff2
Normal file
Binary file not shown.
@@ -65,6 +65,13 @@ const isProd = import.meta.env.PROD;
|
||||
<meta property="og:image:alt" content={resolvedOgImage.alt} />
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
<link rel="canonical" href={siteUrl} />
|
||||
<link
|
||||
rel="preload"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
href="/fonts/roboto.woff2"
|
||||
crossorigin
|
||||
/>
|
||||
<title>{metaTitle}</title>
|
||||
{
|
||||
isProd && (
|
||||
@@ -87,7 +94,7 @@ const isProd = import.meta.env.PROD;
|
||||
)
|
||||
}
|
||||
</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 />
|
||||
<main class="grow flex flex-col">
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user