网页引用google字体速度慢:fonts.googleapis.com

由于众所周知的原因,国内使用google font库有很大的问题。

使用国内镜像如360网站卫士常用前端公共库CDN服务 http://libs.useso.com/

  • 优点:使用方便

  • 缺点:目标用户包含国外的开发者,不清楚国外用户的加载速度

google字体库:fonts.useso.com

google公共库:ajax.useso.com

常用前端公共库:libs.useso.com

 

一个个人的库:http://fonts.gmirror.org/

 

本次使用AdminTLE UI框架发现页面加载需要20多秒,调试发现是几个字体文件下载需要时间长,  在工作空间搜索

fonts.googleapis.com 在AdminLTE.min.css文件中发现

更换为fonts.useso.com后,速度慢的问题解决。

360停止服务,现在换为中科大的 cdn:

  1. ajax.googleapis.com => ajax.lug.ustc.edu.cn
  2. fonts.googleapis.com => fonts.lug.ustc.edu.cn
  3. themes.googleusercontent.com => google-themes.lug.ustc.edu.cn

posted on 2016-09-29 21:51  Gengry  阅读(852)  评论(0编辑  收藏  举报

导航