21321 发表于 2015-2-6 08:10:57

解决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');}
                   

页: [1]
查看完整版本: 解决openstack 的 dashboard 使用了google 字体, 导致网站访问速度慢