解决openstack 的 dashboard 使用了google 字体, 导致网站访问速度慢
openstack 的 dashboard 使用了google 字体, 导致网站访问速度慢
解决方案有几种:
去掉google字体,直接删除google字体
使用local字体替代
使用360字体替代
字体使用代码在css中,以ubuntu为例:
/usr/share/openstack-dashboard/static/dashboard/css/7ac7b118466e.css
@font-face {
font-family: ‘Ubuntu‘;
font-style: normal;
font-weight: 300;
src: url(‘http://themes.googleusercontent.com/static/fonts/ubuntu/v5/e7URzK__gdJcp1hLJYAEag.woff‘) format(‘woff‘); }
/usr/share/openstack-dashboard-ubuntu-theme/static/ubuntu/css/ubuntu.scss
@font-face {
font-family: ‘Ubuntu‘;
font-style: normal;
font-weight: 300;
src: local(‘Ubuntu‘),url(‘http://themes.googleusercontent.com/static/fonts/ubuntu/v5/e7URzK__gdJcp1hLJYAEag.woff‘) format(‘woff‘);
}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。