How to Use the Gatsby Plugin "gatsby-plugin-prefetch-google-fonts" for better font performance

A Designer Who Codes on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateDesign Engineering14 min

About this video

This video shows how to use the gatsby-plugin-prefetch-google-fonts plugin in a Gatsby JS site to preload Google Fonts. The aim is to stop text from appearing in a fallback font and then changing once the chosen font loads. It is aimed at web developers and web designers who already use Gatsby and Google Fonts.

What you’ll learn

  • Install the gatsby-plugin-prefetch-google-fonts plugin in a Gatsby site
  • Preload Google Fonts so text does not shift when the font loads
  • Configure the plugin's font settings in a Gatsby project