Skip to content

Commit

Permalink
feat: optimize font load
Browse files Browse the repository at this point in the history
  • Loading branch information
LaercioSR committed Oct 15, 2024
1 parent 17a14b5 commit e8b2222
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"prettier": "^3.3.3",
"typescript": "^5"
}
}
}
1 change: 1 addition & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ body {
color: var(--primary);
-webkit-font-smoothing: antialiased;
transition: all 0.2s ease-in-out;
font-display: swap;
}

a {
Expand Down
6 changes: 5 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { Space_Mono } from "next/font/google";

import "./globals.css";

const spaceMono = Space_Mono({ weight: ["400", "700"], subsets: ["latin"] });
const spaceMono = Space_Mono({
weight: ["400", "700"],
subsets: ["latin"],
display: "swap",
});

export const metadata: Metadata = {
title: "Laercio Rios",
Expand Down

0 comments on commit e8b2222

Please sign in to comment.