Closed unbug closed 10 years ago
Can you add some more details here on the issue?
Well,this is just a China problem,resources were hosted on Google's server will cause SPOF,Becuause the GFW will block them.So,just remove all the links such as http://fonts.googleapis.com/css
.I'd like host the fonts locally,but look's like it wont be easy.
Thanks for the clarification, @unbug. For now I'm going to leave the font import in the tutorial -- it's part of our existing style, and I can't see any easy workaround to prevent it from blocking rendering.
However, I'm adding a note to the text telling people that the font-roboto
import can block rendering if they can't reach the Google Fonts API. In this case, they should comment out the import.
By the way, you should be able to get the Roboto from various other sites, such as FontSquirrel. This appears to be the updated version (called RobotoDraft on Google Fonts):
http://www.fontsquirrel.com/fonts/roboto-2014
It's an open source font, so there are no restrictions on your hosting it. But there may be other challenges.
Closing this as a tutorial issue. If there's something we could do in the import to prevent this problem, could you open an issue against Polymer/font-roboto?
link below causes SPOF http://fonts.googleapis.com/css