Skip to content

Commit

Permalink
Merge pull request #12482 from ethereum/avoid-preload-mono-font
Browse files Browse the repository at this point in the history
Performance: avoid mono font preload
  • Loading branch information
wackerow authored Mar 20, 2024
2 parents 50c9782 + 5cbff44 commit b48da6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const inter = localFont({
src: "../fonts/Inter-VariableFont_slnt,wght.ttf",
display: "swap",
fallback: ["sans-serif"],
preload: true,
})

// downloaded from https://fonts.google.com/specimen/IBM+Plex+Mono
Expand All @@ -13,4 +14,5 @@ export const mono = localFont({
display: "swap",
weight: "400",
fallback: ["Courier", "monospace"],
preload: false,
})

0 comments on commit b48da6c

Please sign in to comment.