From 87c05b1cb94ace9b9dfaafd91b5c8e07d5f5b3b4 Mon Sep 17 00:00:00 2001 From: Sabrina Hennrich Date: Mon, 7 Jul 2025 08:21:36 +0200 Subject: [PATCH] fonts preload --- nuxt.config.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 53046fb..46f536a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -11,6 +11,35 @@ export default defineNuxtConfig({ }, link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, + // Fonts preloaden + { + rel: 'preload', + href: '/assets/fonts/woff2/Montserrat-Light.woff2', + as: 'font', + type: 'font/woff2', + crossorigin: 'anonymous', + }, + { + rel: 'preload', + href: '/assets/fonts/woff2/Montserrat-Medium.woff2', + as: 'font', + type: 'font/woff2', + crossorigin: 'anonymous', + }, + { + rel: 'preload', + href: '/assets/fonts/woff2/Comfortaa-Light.woff2', + as: 'font', + type: 'font/woff2', + crossorigin: 'anonymous', + }, + { + rel: 'preload', + href: '/assets/fonts/woff2/Comfortaa-Bold.woff2', + as: 'font', + type: 'font/woff2', + crossorigin: 'anonymous', + }, ], charset: 'utf-16', viewport: 'width=device-width, initial-scale=1, maximum-scale=5',