File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 33Performant asynchronous font loading plugin for Gatsby.
44
55:globe_with_meridians : Supports web fonts
6- <br />
6+ <br />< br />
77:house : Suports self-hosted fonts
8- <br />
8+ <br />< br />
99:trident : Loads fonts asynchronously to avoid render blocking
10- <br />
10+ <br />< br />
1111:stopwatch : Implemented with [ fast loading snippets] ( https://csswizardry.com/2020/05/the-fastest-google-fonts/ )
12- <br />
12+ <br />< br />
1313:eyes : Loading status watcher for avoiding FOUT & FOUC
1414
15+ ## Install
16+
17+ ` npm install --save-dev gatsby-omni-font-loader `
18+
19+ or
20+
21+ ` yarn add --dev gatsby-omni-font-loader `
22+
1523## Configuration
1624
1725Add the following snippet to ` gatsby-config.js ` plugins array.
Original file line number Diff line number Diff line change 1818 ],
1919 "author" : " Adrian Bece <adrianbece@live.com>" ,
2020 "license" : " MIT" ,
21+ "homepage" : " https://github.com/codeAdrian/gatsby-omni-font-loader" ,
22+ "bugs" : {
23+ "url" : " https://github.com/codeAdrian/gatsby-omni-font-loader/issues"
24+ },
25+ "repository" : {
26+ "type" : " git" ,
27+ "url" : " https://github.com/codeAdrian/gatsby-omni-font-loader"
28+ },
2129 "peerDependencies" : {
2230 "gatsby" : " >=1"
2331 }
You can’t perform that action at this time.
0 commit comments