<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>小小博客（小小说） &#187; jquery国内cdn</title>
	<atom:link href="http://www.xxsay.com/archives/tag/jquery%e5%9b%bd%e5%86%85cdn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xxsay.com</link>
	<description>这是一个分享生活、美文的博客。</description>
	<lastBuildDate>Sat, 13 Dec 2025 22:29:17 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>靠谱的国内前端CDN公共库（替代GoogleAPIs的加速节点）</title>
		<link>http://www.xxsay.com/archives/678</link>
		<comments>http://www.xxsay.com/archives/678#comments</comments>
		<pubDate>Mon, 16 Jun 2014 11:59:07 +0000</pubDate>
		<dc:creator>诸葛小小</dc:creator>
				<category><![CDATA[原创]]></category>
		<category><![CDATA[大杂烩]]></category>
		<category><![CDATA[随想日记]]></category>
		<category><![CDATA[cdn]]></category>
		<category><![CDATA[jquery国内cdn]]></category>
		<category><![CDATA[前端公共库]]></category>

		<guid isPermaLink="false">http://www.xxsay.com/?p=678</guid>
		<description><![CDATA[更新：googleapis.com国内已经解析到国内Google服务器，已经恢复正常。 最近一段时间，由于政策 [...... ]]></description>
				<content:encoded><![CDATA[<p>更新：googleapis.com国内已经解析到国内Google服务器，已经恢复正常。</p>
<p><span style="color: #000000;"><del>最近一段时间，由于政策原因造成Google被严重干扰。GoogleApis已经不能正常使用，部分网页中的ajax.googleapis.com和fonts.googleapis.com访问速度过慢，拖慢整个网页速度。</del></span></p>
<p>可以替代GoogleAPIs的方案：</p>
<p>1、使用官方的源。如Jquery官方CDN：http://code.jquery.com/</p>
<p>2、把涉及的JS/CSS放到自己服务器上。</p>
<p>3、改为国内CDN节点。</p>
<p>这也是本文的主要内容，<strong><span style="color: #ff0000;">下面介绍一些各大靠谱CDN公共库：</span></strong></p>
<p><strong>国外</strong>：</p>
<p>【推荐】jsDelivr: <a href="https://www.jsdelivr.com/">https://www.jsdelivr.com/</a> 【还支持自动为github项目加速，需要release】</p>
<p>微软(Microsoft ASP.net CDN)：<a href="http://www.asp.net/ajaxlibrary/CDN.ashx" target="_blank">http://www.asp.net/ajaxlibrary/CDN.ashx</a>   （支持https）</p>
<p>CDNJS.com提供的100多种JS库：<a href="http://cdnjs.com/" target="_blank">http://cdnjs.com/</a>  （支持https）</p>
<p><strong>国内</strong>：</p>
<p>【推荐】BootCDN：<a href="https://www.bootcdn.cn/">https://www.bootcdn.cn/</a> 【国内靠谱CDN】</p>
<p>又拍云：<a href="http://jscdn.upai.com/" target="_blank">http://jscdn.upai.com/</a> （支持https） </p>
<p>又拍云 CDNJSCN：<a href="http://www.cdnjs.cn/" target="_blank">http://www.cdnjs.cn/</a> （支持https）维护者(Sofish/hfcorriez/ikbear@qiniu)</p>
<p>中科大库：<a href="https://servers.ustclug.org/2014/07/ustc-blog-force-google-fonts-proxy/" target="_blank">https://servers.ustclug.org/2014/07/ustc-blog-force-google-fonts-proxy/</a> [支持https，完全GoogleAPIs镜像] 维护者（LUG@ustc）</p>
<p>新浪云：<a href="http://lib.sinaapp.com/" target="_blank">http://lib.sinaapp.com/</a> （支持https，但库不全不新）</p>
<p>百度云：<a href="http://developer.baidu.com/wiki/index.php?title=docs/cplat/libs" target="_blank">http://developer.baidu.com/wiki/index.php?title=docs/cplat/libs</a> [不推荐，不支持https]</p>
<p>360卫士：<a href="http://libs.useso.com/" target="_blank">http://libs.useso.com/</a>  [不推荐，不支持https]</p>
<p>七牛CDN  StaticFile：<a href="http://www.staticfile.org/" target="_blank">http://www.staticfile.org/</a> [不推荐，不支持https] 维护者(Sofish/hfcorriez/ikbear@qiniu)</p>
<p>&nbsp;</p>
<p> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;以下内容可以不看&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>什么是CDN公共库？</strong></p>
<p>CDN公共库是指将常用的JS库存放在CDN节点，以方便广大开发者直接调用。与将JS库存放在服务器单机上相比，CDN公共库更加稳定、高速。一般的CDN公共库都会包含全球所有最流行的开源JavaScript库。<br /> </p>
<p><strong>为什么要引用CDN公共库？</strong></p>
<p><strong>1</strong>.减少等待时间</p>
<p>CDN-Content Delivery Network（内容分发网络），通过各种各样的服务途径把你的一些静态内容分散开来，当用户的浏览器提交这些文件的链接请求，他们便会自动下载网络上最近的可用的文件。这样任何使用你的服务的用户从JS库下载都将获得比从你自己的服务器上下载更快的速度。</p>
<p><strong>2</strong>.增加网页的同时载入速度</p>
<p>为了避免服务的过载，浏览器限制了同时连接的数目，依据不同的浏览器，这个限制可能是每个机房仅仅两个之少。<br />使用CDN公共库加载JS，使你本地服务器上更多服务可以同时进行。</p>
<p><strong>3</strong>.更好的缓存</p>
<p>使用CDN公共库的最大好处是你的用户可能根本不需要下载jQuery.不论你的缓存多么强大，如果你用自己的服务器提供jQuery，那么你的用户至少要下载一次它，某个用户很有可能在他们浏览器的缓存区里下载了许多完全相同的jQuery.min.js的拷贝版本，但是当他们第一次访问你的网站的时候，这些拷贝版本会被忽略。</p>
<p>而当浏览器检测到同样版本的指向CDN公共库的链接，它就会知道这是下载同一个文件，不仅是CDN公共库的服务器会返回一个304（不需要修改文件的指令，即服务器上的文件未改动过）来回复一个重复的请求，而且会命令浏览器的缓存该文件长达一年的时间。</p>
<p>这意味着即使一些人访问了数百的使用CDN公共库的网站,他们只需要下载一次就够了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xxsay.com/archives/678/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
