Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


A Gatsby plugin to download and prefetch Google Fonts. Can increase performance as opposed to loading webfonts from Google’s external stylesheet.


With npm:

npm install --save @vinzcelavi/gatsby-plugin-prefetch-google-fonts

Or with Yarn:

yarn add @vinzcelavi/gatsby-plugin-prefetch-google-fonts


In your gatsby-config.js file, load in the plugin along with which web fonts to load.

module.exports = {
  plugins: [
      resolve: `@vinzcelavi/gatsby-plugin-prefetch-google-fonts`,
      options: {
        fonts: [
            family: 'Roboto',
            variants: [
            subsets: [

For a list of all available font family options, consult the google-fonts-plugin readme.

© 2023 Gatsby, Inc.