google font make page load very slow in china

安稳与你 提交于 2019-12-29 08:25:29

问题


I am using google font on my site. Some clients in china said that the site load very slow. I checked it, it is causing by the google fonts. I looked the google font faq, they said it will download the font file to the customer's computer before loading the site. Are there any way to fixed this slow loading issue?


回答1:


This was a known issue... Google Fonts were slow loading in China. Previously you could serve mirrors of the fonts through Qihoo 360 CDN servers in China. However, as of August 2016 the problem has been fixed. At the same time Qihoo 360 has stopped fonts.useso.com and all mirrored fonts hosted under fonts.useso.com stop working now. Details are described here.

Google has fixed Google Fonts, which now directly serves the css and font files from Google’s servers in Beijing, which means Google Fonts are much more stable and faster to users in China now.

I recommend all webmasters who have been using fonts.useso.com switch back to the original Google Fonts as soon as possible.




回答2:


I figured a way to fixed it. Instead of loading it with link tag, I changed to load the font with javascript and load it async, it is fine now. much faster



来源:https://stackoverflow.com/questions/25677460/google-font-make-page-load-very-slow-in-china

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!