English 中文(简体)
在将吉克里图书馆从奥古格尔·阿贾克斯图书馆包括在内方面有什么好处? [复制]
原标题:What are the advantages in including Jquery library from google s ajax api library? [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Why should I use Google s CDN for jQuery?

我看到许多网络方案人员,包括Jquery图书馆从Agogle s ajax api图书馆。 除了节省一些空间外,没有把这些图书馆设在我们的服务器中,是否有什么实际好处? 这样做是否好?

最佳回答
问题回答

允许谷歌为你主办该文稿有几个好处。

  1. Decreased Latency
  2. Increased Parallelism
  3. Better Caching

<>加强>

一台光盘——短于内容传输网——在各种有形地点向服务器分发固定内容。 当用户浏览器将URL用于这些档案时,其下载将自动瞄准网络中最接近的服务器。

就谷歌的AJAX图书馆CDN而言,这意味着,任何没有实际接近服务器的用户都能够比你迫使其从你任意定位的服务器下载高档。

There are a handful of CDN services comparable to Google’s, but it’s hard to beat the price of free! This benefit alone could decide the issue, but there’s even more.

www.un.org/Depts/DGACM/index_spanish.htm 增加平行活动

为了避免无谓地超载服务器,浏览器限制可同时连接的数量。 根据哪位浏览器,这一限额可能低于每个接收国的两条连接线。

利用谷歌宇宙航空研究学会图书馆光盘,取消了对贵网站的一项要求,使更多的当地内容能够同时下载。 它对拥有6个同时连接浏览器的用户没有产生巨大的差异,但对于那些仍然拥有只有2个浏览器的浏览器的人来说,差异是明显的。

<>Better Caching

利用谷歌宇宙航空研究开发协会图书馆光盘的潜在好处是,你的用户不一定需要下载胶片。

不管怎样优化你的网站,如果你在当地主办“ j”,那么用户至少必须下载一次。 每位用户在浏览器的海滩上可能已经拥有几十份相同的 j,但访问贵方时却忽略了这些 j。

然而,当浏览器看见CDN主办复制品时,它的理解是,所有这些参考资料都指同一档案。 由于所有这些CDN参考文件都确切提到同样的URLs,浏览器可以相信,这些档案确实相同,如果它已经过期,就能够赢得废物处理时间。 因此,浏览器能够使用单一拷贝,该复制件可以贴上单线,而不管在哪一地点,CDN的参考资料都出现在其中。

This creates a potent "cross-site caching" effect which all sites using the CDN benefit from. Since Google s CDN serves the file with headers that attempt to cache the file for up to one year, this effect truly has amazing potential. With many thousands of the most trafficked sites on the Internet already using the Google CDN to serve jQuery, it s quite possible that many of your users will never make a single HTTP request for jQuery when they visit sites using the CDN.

即便有人使用同样的谷歌的主播版本访问数百个场所,他们只需要下载一次!

Pro:

  • 你拯救了交通。 j 食堂和宇宙能为交通占用许多空间。

  • Google and co. CDNs are created to do this job. If someone is able to offer such content very fast than networks like this.

  • 长期以来,浏览器无法从一个领域装载2份以上的 Java字文档。 如果你使用 j。 如果今天这一点很重要,问题就在于此。

  • Many people use Google or Microsoft services or visit websites which are linked by their jQuery Version. That means, you have the big chance, that your browser already cached jQuery somewhere – shorter waiting times while loading!

避孕:

  • You cant use it if you dont have internet connection (local lan only applications)




相关问题
Export to pdf on the client or server side?

My client side application is using jqgrid that requests the server side, which in its turn queries MySQL and sends back the resultSet in XML format. I m willing to add the export to PDF ...

Image generator

I d like to be able to generate an image with overlaying text (that is inputted by the user) such as how it is done on www.depressiondog.info. Can someone show/link me to some code that will do that. ...

Where should I put this configuration setting?

I m designing a fairly small web application which will run on a Sun application server (v9.1). It only has a few pages, no database of its own, and will retrieve/update data via web services. There s ...

服务器面与用户对用户的MVC在网络信号中

我最近找到了一种与《伙伴关系协定》有关的有趣的替代办法。 NET MVC,我目前做的是:静态超文本,配有先进的 Java本式服务电话(大多数例子使用开放式雷达)。 例如,见此或......。

MySQL Users and All Privileges

Ok, I m trying to add a user to a MySQL database. This user should be able to add other users to the database it has privileges for. So I did this: GRANT ALL privileges ON thedbname.* TO topuser @ % ...

Doesn t get into Debug Mode

When I Press F5 on my VS2005 to debug the application, it launches the web app window but it is coming out of debug mode. When I tried to trace the Error in the EventViewer, this was the error: ...

热门标签