Skip to content

Commit 23ba07d

Browse files
committed
Added font preloading
1 parent ccbc378 commit 23ba07d

File tree

4 files changed

+18488
-1
lines changed

4 files changed

+18488
-1
lines changed

font-preload-cache.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
siteUrl: `https://codebrahma.com`
1111
},
1212
plugins: [
13+
`gatsby-plugin-preload-fonts`,
1314
`gatsby-plugin-react-helmet`,
1415
{
1516
resolve: `gatsby-plugin-react-helmet-canonical-urls`,

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"gatsby-plugin-mdx": "^1.0.56",
2323
"gatsby-plugin-netlify": "^2.1.3",
2424
"gatsby-plugin-offline": "^2.1.1",
25+
"gatsby-plugin-preload-fonts": "^2.5.0",
2526
"gatsby-plugin-react-helmet": "^3.0.12",
2627
"gatsby-plugin-react-helmet-canonical-urls": "^1.2.0",
2728
"gatsby-plugin-sharp": "^2.1.3",
@@ -60,6 +61,7 @@
6061
"serve": "gatsby serve",
6162
"docz:dev": "docz dev",
6263
"docz:build": "docz build",
63-
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
64+
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"",
65+
"preload-fonts": "gatsby-preload-fonts"
6466
}
6567
}

0 commit comments

Comments
 (0)