From 46ee87865751413d0901b3d8ab925b1f0a79027c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Von=C3=A1=C5=A1ek?= Date: Wed, 12 Jun 2024 17:02:48 +0200 Subject: [PATCH] optimize font loading --- src/routes.tsx | 6 ------ vite.config.ts | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/routes.tsx b/src/routes.tsx index dbdcbcbe2..c4d1d0aa6 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -353,12 +353,6 @@ export const routes: Route[] = [ ), }, - - // TODO: Not ready. Requested in #861n9ffe4 - // { - // path: "LRNA", - // element: , - // }, ], }, { diff --git a/vite.config.ts b/vite.config.ts index 3a8e7c593..04894c603 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -46,9 +46,9 @@ export default defineConfig(({ mode }) => { svgr(), Unfonts({ custom: { - display: "auto", - preload: true, - injectTo: "head-prepend", + display: "swap", + prefetch: true, + injectTo: "head", families: [ { name: "Geist",