TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tell HN: If you use Google Web Fonts your site loads much slower in China

9 点作者 ecubed将近 10 年前
We all know that Google is blocked in China, but I think it is known to a lesser extent that fonts.googleapis.com is also blocked. As a result, any site relying on Google to serve fonts will appear to load much slower than it should.<p>StackOverflow is a prime example of a site that should not need a VPN to access from China, but in its current state requires one due to the reliance on Google to serve fonts.<p>So if you&#x27;re looking to include the Chinese or China&#x27;s expatriate population in your potential customer base, please consider the implications of reliance on Google services.

1 comment

zhte415将近 10 年前
Yes, yes, yes. Not only Google Fonts, and not only China.<p>Jurisdictions<p>Anywhere where internet filtering is done leads to the risk that non-self-hosting (i.e. giving responsibility for delivery to a 3rd party) leads to a denial or degradation of service. This might even be somewhere in your neighborhood.<p>3rd parties:<p>Avoid CDNs (or run your own CDN) unless you only care about delivery to where you are&#x2F;where places similar to you are.<p>Fonts: Self-host, or just use a stack of commonly installed fonts.<p>Analytics: Google Analytics is useless when Google is disrupted. Got visitors from China&#x2F;other? Your analytics don&#x27;t show them. Use something like Piwik that can be self hosted [and leave you in control of your data].<p>Media: Link to a picture or video? Self host, again. Multiple media hosts are blocked across multiple jurisdictions.<p>Anything else: Self-host if you care about delivery. Use 3rd parties when you&#x27;re happy to not have delivery happen in cases that are felt not important enough to care about.