From 748f1c4b4cfaa86c28680b4415be604f536f67de Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 9 Feb 2022 12:19:29 -0500 Subject: [PATCH] preload common fonts (in a horrifically hard-coded fashion) --- pages/_app.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pages/_app.tsx b/pages/_app.tsx index 4f4e4f37..e3562dcb 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,5 +1,6 @@ import { useEffect } from "react"; import { useRouter } from "next/router"; +import Head from "next/head"; import { ThemeProvider } from "next-themes"; import { DefaultSeo, SocialProfileJsonLd } from "next-seo"; import * as Fathom from "fathom-client"; @@ -69,6 +70,25 @@ const App = ({ Component, pageProps }: Props) => { <> {getLayout()} + {/* static asset preloads */} + + {/* TODO: these hrefs will change at some point (and possibly unpredictably). find a better way... */} + + + + {/* all SEO config is in ./lib/seo.ts except for canonical URLs, which require access to next router */}