Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

perf(web): disable font preloading and use WOFF2 in layout

Richie McIlroy91609fcc5949
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 6a7418162..f8c3bbcff 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -7,36 +7,37 @@ import type { PropsWithChildren } from "react";
const defaultFont = localFont({
src: [
{
- path: "../public/fonts/NeueMontreal-Bold.otf",
+ path: "../public/fonts/NeueMontreal-Bold.woff2",
weight: "700",
style: "normal",
},
{
- path: "../public/fonts/NeueMontreal-Regular.otf",
+ path: "../public/fonts/NeueMontreal-Regular.woff2",
weight: "400",
style: "normal",
},
{
- path: "../public/fonts/NeueMontreal-Medium.otf",
+ path: "../public/fonts/NeueMontreal-Medium.woff2",
weight: "500",
style: "normal",
},
{
- path: "../public/fonts/NeueMontreal-MediumItalic.otf",
+ path: "../public/fonts/NeueMontreal-MediumItalic.woff2",
weight: "500",
style: "italic",
},
{
- path: "../public/fonts/NeueMontreal-Italic.otf",
+ path: "../public/fonts/NeueMontreal-Italic.woff2",
weight: "400",
style: "italic",
},
{
- path: "../public/fonts/NeueMontreal-BoldItalic.otf",
+ path: "../public/fonts/NeueMontreal-BoldItalic.woff2",
weight: "700",
style: "italic",
},
],
+ preload: false,
});
export const metadata: Metadata = {