Home / Companies / Gatsby / Blog / Post Details
Content Deep Dive

How to Add Custom Fonts to Gatsby

Blog post from Gatsby

Post Details
Company
Date Published
Author
Paul Scanlon
Word Count
1,028
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

Paul Scanlon discusses the drawbacks of using Google Fonts in Gatsby sites, emphasizing the impact on web performance due to additional HTTP requests required to fetch fonts from Google's servers, which can negatively affect the Largest Contentful Paint (LCP) metric. He suggests a more efficient alternative by loading font files locally, which reduces external requests and improves overall performance metrics as shown by Lighthouse reports. The process involves uninstalling the gatsby-plugin-google-fonts, adding font files to the static directory, and using the @font-face CSS rule with the rel="preload" attribute to prioritize font loading, ultimately demonstrating that a more manual approach can yield significant performance benefits for web developers.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.