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

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

I tested my site via Pingdom and got this:

\"enter

I searched but couldn\'t fi

7条回答
  •  再見小時候
    2020-12-13 00:34

    Not a complete solution, but you can improve the situation by combining the two requests to one:

    https://fonts.googleapis.com/css?family=Montserrat|Open+Sans
    

    I do that for two fonts on one of my sites and score 86 versus your 14. Importantly, this is a genuine speedup, not just a hack to reduce an arbitrary score.

提交回复
热议问题