style: Add preconnect and dns-prefetch for Google Fonts

This commit is contained in:
Gauthier Daniels 2025-04-21 20:39:05 +02:00
parent 283cdd69e5
commit 4189fcaed6

View File

@ -15,13 +15,23 @@ export default function HeadDefault() {
/>
<link rel="preload" href={blurCyanImage} as="image" />
<link
rel="preload"
href="https://fonts.gstatic.com/s/inter/v12/UcCO3F1r8g.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="anonymous"
/>
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Lexend:wght@400;500;700&display=swap"
rel="stylesheet"