mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 20:55:47 -04:00
undo moving head preload tags
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { useEffect } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import Head from "next/head";
|
||||
import { DefaultSeo, SocialProfileJsonLd } from "next-seo";
|
||||
import * as Fathom from "fathom-client";
|
||||
import urlJoin from "url-join";
|
||||
@@ -9,7 +8,7 @@ import Layout from "../components/Layout";
|
||||
import * as config from "../lib/config";
|
||||
import { defaultSeo, socialProfileJsonLd } from "../lib/config/seo";
|
||||
import { themeClassNames } from "../lib/config/themes";
|
||||
import { globalStyles, preloadUrls } from "../lib/styles/stitches.config";
|
||||
import { globalStyles } from "../lib/styles/stitches.config";
|
||||
import type { AppProps as NextAppProps } from "next/app";
|
||||
|
||||
// https://nextjs.org/docs/basic-features/layouts#with-typescript
|
||||
@@ -62,20 +61,6 @@ const App = ({ Component, pageProps }: NextAppProps) => {
|
||||
/>
|
||||
<SocialProfileJsonLd {...socialProfileJsonLd} />
|
||||
|
||||
{/* preload highest priority fonts defined in ../lib/styles/fonts/ */}
|
||||
<Head>
|
||||
{preloadUrls.map((relativeUrl, index) => (
|
||||
<link
|
||||
key={`font-${index}`}
|
||||
rel="preload"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
href={relativeUrl}
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
))}
|
||||
</Head>
|
||||
|
||||
<ThemeProvider classNames={themeClassNames}>
|
||||
<Layout>
|
||||
<Component {...pageProps} />
|
||||
|
||||
Reference in New Issue
Block a user