From 839f0b62fdc08613471214266c46673d6d527552 Mon Sep 17 00:00:00 2001 From: Holtz Yan Date: Tue, 1 Aug 2023 10:02:13 +0200 Subject: [PATCH] load font properly to avoid CLS --- component/HeadSeo.tsx | 12 ------------ fonts.ts | 16 ++++++++++++++++ pages/_app.tsx | 10 +++++----- style/style.css | 2 -- 4 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 fonts.ts diff --git a/component/HeadSeo.tsx b/component/HeadSeo.tsx index a5b758d0..9b749108 100644 --- a/component/HeadSeo.tsx +++ b/component/HeadSeo.tsx @@ -29,18 +29,6 @@ export const HeadSeo = ({ title, seoDescription }: HeadSeoProps) => { sizes="16x16" href="/favicon/favicon-16x16.png" /> - - {/* Load fonts. Then used in style.css */} - - {/* Bitter AND roboto in 1 shot */} - -