Skip to content

Commit

Permalink
first pass at reducing CLS w/ fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
nonissue committed Feb 26, 2022
1 parent df63c89 commit 22ffdd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import NextDocument, { Html, Head, Main, NextScript } from "next/document";
import NextDocument, { Html, Head, Main, NextScript } from 'next/document';

export default class Document extends NextDocument {
render() {
Expand All @@ -20,7 +20,6 @@ export default class Document extends NextDocument {
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="preload"
href="/fonts/Inter-var-latin-21-07-22-2.woff2"
Expand All @@ -32,7 +31,6 @@ export default class Document extends NextDocument {
href="https://fonts.googleapis.com/css2?family=Recursive:wght,CRSV,MONO@400,0,1;900,0,1&display=swap"
rel="stylesheet"
/>

<link
href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const IndexPage: NextPage & {
return (
<>
<section className="prose prose-lg md:prose-xl lg:prose-2xl dark:prose-invert">
<p className="">
<p>
Hi! I&apos;m Andy Williams. I am a Computing student{' @ '}
<PrimaryLink href="https://macewan.ca">
Macewan University
Expand Down

1 comment on commit 22ffdd0

@vercel
Copy link

@vercel vercel bot commented on 22ffdd0 Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.