From d67eade6fb503dfed7b347410f3f1f55d6dde67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 26 Jul 2022 23:41:13 +0200 Subject: [PATCH] Preload fonts --- src/routes/__layout.svelte | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index ddf1ffc..b07afed 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -17,6 +17,16 @@ export let data: any export let count: any + // Fonts to preload + const fonts = [ + 'G-Light', + 'G-Regular', + 'G-Medium', + 'G-Semibold', + 'J-Extralight', + 'J-Light', + ] + // Set global data setContext('global', { ...data, @@ -50,6 +60,12 @@ }) + + {#each fonts as font} + + {/each} + +