codeAdrian / gatsby-omni-font-loader

Font loader optimized for maximum performance. Removes render-blocking font resources and loads them asynchronusly. Handle FOUT & FOUC with font loading status watcher. Supports both local-hosted fonts and web fonts.
MIT License
106 stars 7 forks source link

Only load fonts that are used in a page #34

Open edenworky opened 2 years ago

edenworky commented 2 years ago

I have a website where some pages use one font and other pages use another. How could I go about using all this plugin's optimizations (e.g. for FOUT) without loading all the fonts my site uses for every page?