How do I 'leverage browser caching' for Google fonts?

前端 未结 7 507
鱼传尺愫
鱼传尺愫 2020-12-12 23:42

I tested my site via Pingdom and got this:

\"enter

I searched but couldn\'t fi

7条回答
  •  萌比男神i
    2020-12-13 00:33

    A fairly easy workaround would be to generate your own kit with Font Squirrel's Webfont Generator:

    https://www.fontsquirrel.com/tools/webfont-generator

    To be able to use this, you would need to download the fonts (Montserrat and Open Sans are both available on Font Squirrel) and add them to the generator. This can be used for adding further customization. (I've used it many times in cases where the font in Google Webfonts didn't have the necessary subsetting for Hungarian language even though it was available in the original font.)

提交回复
热议问题