Local Fallback for Google Web Fonts

后端 未结 3 636
無奈伤痛
無奈伤痛 2020-12-28 20:18

The HTML5 Boilerplate uses a script for loading a local copy of jQuery if, for whatever reason, the Google CDN version fails to load:



        
3条回答
  •  死守一世寂寞
    2020-12-28 21:05

    If you download all the necessary webfonts and store it e.g. in a local file Webfonts.css you could do something like this:

    
    

    Note: This is assuming that the cdn's fonts.googleapis.com and ajax.googleapis.com fail at the same time..

提交回复
热议问题