[英]Google CDN servers hosted libraries VS locally hosted
当我们使用已存储在某处的文件(如Google托管的库或字体)而不是存储在我们网页的本地服务器上的文件时,例如性能视角的差异,会有区别吗?
Yes, there are a few differences. 是的,有一些差异。 In most of the scenarios, your page will load much faster because:
在大多数情况下,您的页面加载速度会快得多,因为:
The scenario where you may want to host on your site is if you are serving content for countries where Google, Google's CDN or similar are blocked. 您可能希望在自己的网站上托管的方案是,如果您要为Google,Google的CDN或类似网站被阻止的国家/地区提供内容。
Yes, these is small difference exists. 是的,这些存在的差别很小。 Modern browsers has limit, for example: no more than 4 parallel downloads from one domain.
现代浏览器有限制,例如:从一个域下载不超过4个并行。 So, if you will use fonts from Google CDN servers, it possible, page will load little bit faster.
因此,如果您将使用来自Google CDN服务器的字体,那么页面加载速度会更快一些。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.