fonts preload

This commit is contained in:
Sabrina Hennrich 2025-07-07 08:21:36 +02:00
parent fe30621227
commit 87c05b1cb9

View File

@ -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',