KyleAMathews / typography.js

A powerful toolkit for building websites with beautiful design
http://kyleamathews.github.io/typography.js/
MIT License
3.82k stars 181 forks source link

Adding display=swap to GoogleFont in react-typography #267

Open emanueleperuffo opened 3 years ago

emanueleperuffo commented 3 years ago

Hi and sorry for not opening a PR about this, but I don't know the consequences of changing code here (Gatsby plugin etc...).

My Lighthouse is telling me I should improve the way my fonts are loading. In fact I have some google fonts missing the display=swap query parameter. Have you ever thought of including it? Maybe as a prop of GoogleFont in react-typography and an option in the Gatsby plugin.