From f0122373ccc26758021ba31dcb02ff3c90d4607d Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Fri, 8 May 2020 14:08:47 +0200 Subject: [PATCH] Add font preloading --- frontend/nuxt.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index 141bca2..b33f034 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -23,7 +23,16 @@ export default { content: process.env.npm_package_description || '', }, ], - link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], + link: [ + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, + { + rel: 'preload', + href: '/fonts/roboto-v20-latin-regular.woff2', + as: 'font', + type: 'font/woff2', + crossorigin: 'anonymous', + }, + ], }, /* ** Customize the progress-bar color