From 14866f81f2a0b03f33ed19b5e2518acae457702c Mon Sep 17 00:00:00 2001 From: webfussel Date: Fri, 24 May 2024 09:18:14 +0200 Subject: [PATCH] ADD: preload assets --- app.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app.vue b/app.vue index 78eea9c..55b84da 100644 --- a/app.vue +++ b/app.vue @@ -52,7 +52,13 @@ useHead({ name: 'robots', content: 'index, follow' }, - + ], + link: [ + { rel: 'preload', href: '/img/profile_big.webp', type: 'image/webp' }, + { rel: 'preload', href: '/img/profile_small.webp', type: 'image/webp' }, + { rel: 'preload', as: 'font', href: '/opensans.woff2', type: 'font/woff2' }, + { rel: 'preload', as: 'font', href: '/roboto_con_bold.woff2', type: 'font/woff2' }, + { rel: 'preload', as: 'font', href: '/roboto_con_reg.woff2', type: 'font/woff2' }, ] })