网页引用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文件中发现![](https://images2015.cnblogs.com/blog/882454/201609/882454-20160929214954625-995374159.png)
360停止服务,现在换为中科大的 cdn:
- ajax.googleapis.com => ajax.lug.ustc.edu.cn
- fonts.googleapis.com => fonts.lug.ustc.edu.cn
- themes.googleusercontent.com => google-themes.lug.ustc.edu.cn