I'm using Gatsby.js and its Typography plugin with the Irving theme.
This theme requires the Google Fonts "Exo" and "Yrsa", and adds an import to the <head>
section of the exported static html files:
<link href="//fonts.googleapis.com/css?family=Exo:700|Yrsa:400,700" rel="stylesheet" type="text/css"/>
This import is render-blocking content and I'd prefer to avoid it if possible for both users and my Google PageSpeed Insights score.
I tried using gatsby-plugin-google-fonts and added the following to my gatsby-config.js:
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`Exo\:700`,
`Yrsa\:400,700`,
],
}
},
However this just adds a second import call. Should I be placing them in the static directory? Even then, how can I configure Typography to still use these fonts without importing them separately?