<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 3 reasons why you should let Google host jQuery for you</title>
	<atom:link href="http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:50:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-62747</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sat, 28 Jan 2012 03:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-62747</guid>
		<description>You shouldn&#039;t do that in production. In order to reliably serve up the latest version for /1 or /1.n, the CDN responds with &lt;em&gt;very&lt;/em&gt; short caching expiration headers. So, you lose almost all of the caching benefit. At that point, serving jQuery from your own site with proper caching headers would actually be faster for returning visitors.</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t do that in production. In order to reliably serve up the latest version for /1 or /1.n, the CDN responds with <em>very</em> short caching expiration headers. So, you lose almost all of the caching benefit. At that point, serving jQuery from your own site with proper caching headers would actually be faster for returning visitors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo Brocco</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-62597</link>
		<dc:creator>Paolo Brocco</dc:creator>
		<pubDate>Thu, 26 Jan 2012 15:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-62597</guid>
		<description>Hi, I don&#039;t know if somebody mentioned it, but ideally all website would link to jquery (hosted on google ajax libraries) without specifying an exact version. Because if a website links to jquery 1.6.0, the other to 1.6.1, the other to 1.6.4 then it will be the same as linking to your server one.

So e.g. instead of linking to ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js 
we should all link to ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js... see the difference? Asap jquery is updated everybody is pointing already to the last version and the caching is there and no need to update your website.

Disadvantage: if jquery breaks something you have to correct your scripts or link to an older version. But I would risk that, after all if something stops working then you just link to the older version and voila: fixed.</description>
		<content:encoded><![CDATA[<p>Hi, I don&#8217;t know if somebody mentioned it, but ideally all website would link to jquery (hosted on google ajax libraries) without specifying an exact version. Because if a website links to jquery 1.6.0, the other to 1.6.1, the other to 1.6.4 then it will be the same as linking to your server one.</p>
<p>So e.g. instead of linking to ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js<br />
we should all link to ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&#8230; see the difference? Asap jquery is updated everybody is pointing already to the last version and the caching is there and no need to update your website.</p>
<p>Disadvantage: if jquery breaks something you have to correct your scripts or link to an older version. But I would risk that, after all if something stops working then you just link to the older version and voila: fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-62434</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 24 Jan 2012 19:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-62434</guid>
		<description>A CDN doesn&#039;t need to enable CORS for you to use its assets on your page. That&#039;s only necessary for AJAX requests, not for referencing third party scripts.</description>
		<content:encoded><![CDATA[<p>A CDN doesn&#8217;t need to enable CORS for you to use its assets on your page. That&#8217;s only necessary for AJAX requests, not for referencing third party scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John AtWork</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-62429</link>
		<dc:creator>John AtWork</dc:creator>
		<pubDate>Tue, 24 Jan 2012 14:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-62429</guid>
		<description>I can&#039;t use google as my CDN because they have not enabled CORS.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t use google as my CDN because they have not enabled CORS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MegaSteve4</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-62104</link>
		<dc:creator>MegaSteve4</dc:creator>
		<pubDate>Thu, 19 Jan 2012 20:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-62104</guid>
		<description>Ah ok...  Worth noting that that link does fail if you try and run it from a local HTML file say on your desktop....as I did I guess &#039;Live&#039; would be different - great article though.</description>
		<content:encoded><![CDATA[<p>Ah ok&#8230;  Worth noting that that link does fail if you try and run it from a local HTML file say on your desktop&#8230;.as I did I guess &#8216;Live&#8217; would be different &#8211; great article though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-61457</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 12 Jan 2012 23:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-61457</guid>
		<description>Actually, that&#039;s done on purpose. This way, if you are on an HTTPS page, it matches that.</description>
		<content:encoded><![CDATA[<p>Actually, that&#8217;s done on purpose. This way, if you are on an HTTPS page, it matches that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MegaSteve4</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-61456</link>
		<dc:creator>MegaSteve4</dc:creator>
		<pubDate>Thu, 12 Jan 2012 23:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-61456</guid>
		<description>DEAD LINK ALERT - I would guess that Wordpress is stripping the h t t p from the beginning of the link resulting in this &quot;//ajax.googleapis.com................&quot;

This is happening in the link at the top of the tut and bottom

But great tut v informative</description>
		<content:encoded><![CDATA[<p>DEAD LINK ALERT &#8211; I would guess that WordPress is stripping the h t t p from the beginning of the link resulting in this &#8220;//ajax.googleapis.com&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221;</p>
<p>This is happening in the link at the top of the tut and bottom</p>
<p>But great tut v informative</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HyperPac´s site &#187; Blog Archive &#187; Wordpress Visual Editor broken after Update 3.3.1 (again)</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-61105</link>
		<dc:creator>HyperPac´s site &#187; Blog Archive &#187; Wordpress Visual Editor broken after Update 3.3.1 (again)</dc:creator>
		<pubDate>Tue, 10 Jan 2012 12:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-61105</guid>
		<description>[...] And this explains why you may wanna use it, even if your visual editor works fine: http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/ [...]</description>
		<content:encoded><![CDATA[<p>[...] And this explains why you may wanna use it, even if your visual editor works fine: <a href="http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/" rel="nofollow">http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-59933</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Jan 2012 20:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-59933</guid>
		<description>I wonder if Microsoft&#039;s jQuery hosting domain got tagged as phishing as well</description>
		<content:encoded><![CDATA[<p>I wonder if Microsoft&#8217;s jQuery hosting domain got tagged as phishing as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-59932</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 04 Jan 2012 19:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-59932</guid>
		<description>Using a local fallback (e.g. http://weblogs.asp.net/jgalloway/archive/2010/01/21/using-cdn-hosted-jquery-with-a-local-fall-back-copy.aspx) will handle DNS issues like that automatically, without penalizing the majority of users who have good DNS.

edit: Looks like this is already fixed: http://forums.opendns.com/comments.php?DiscussionID=12755#Item_12</description>
		<content:encoded><![CDATA[<p>Using a local fallback (e.g. <a href="http://weblogs.asp.net/jgalloway/archive/2010/01/21/using-cdn-hosted-jquery-with-a-local-fall-back-copy.aspx" rel="nofollow">http://weblogs.asp.net/jgalloway/archive/2010/01/21/using-cdn-hosted-jquery-with-a-local-fall-back-copy.aspx</a>) will handle DNS issues like that automatically, without penalizing the majority of users who have good DNS.</p>
<p>edit: Looks like this is already fixed: <a href="http://forums.opendns.com/comments.php?DiscussionID=12755#Item_12" rel="nofollow">http://forums.opendns.com/comments.php?DiscussionID=12755#Item_12</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamie</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-59930</link>
		<dc:creator>jamie</dc:creator>
		<pubDate>Wed, 04 Jan 2012 19:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-59930</guid>
		<description>it is a headache indeed - I&#039;ve just switched back to local :)</description>
		<content:encoded><![CDATA[<p>it is a headache indeed &#8211; I&#8217;ve just switched back to local :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-59820</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Wed, 04 Jan 2012 11:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-59820</guid>
		<description>One major problem we have hit today... OpenDNS has just categorised apis.google.com as a Phising site,  meaning anyone who uses OpenDNS can&#039;t access the jQuery we link to via Goggle CDN

Ok,  not a Google problem,  but a big enough headache today!!</description>
		<content:encoded><![CDATA[<p>One major problem we have hit today&#8230; OpenDNS has just categorised apis.google.com as a Phising site,  meaning anyone who uses OpenDNS can&#8217;t access the jQuery we link to via Goggle CDN</p>
<p>Ok,  not a Google problem,  but a big enough headache today!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-57968</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 29 Dec 2011 20:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-57968</guid>
		<description>Nothing wrong with a little caution. It&#039;s probably a safe assumption that Google&#039;s tracking you whenever they can. This is just one of those few situations where even Google shouldn&#039;t be able to extract any useful tracking information from the data they&#039;ll be getting.</description>
		<content:encoded><![CDATA[<p>Nothing wrong with a little caution. It&#8217;s probably a safe assumption that Google&#8217;s tracking you whenever they can. This is just one of those few situations where even Google shouldn&#8217;t be able to extract any useful tracking information from the data they&#8217;ll be getting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-57967</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 29 Dec 2011 20:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-57967</guid>
		<description>Oh, you are right about the caching! Guess I was being overly cautious</description>
		<content:encoded><![CDATA[<p>Oh, you are right about the caching! Guess I was being overly cautious</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-57966</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 29 Dec 2011 20:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-57966</guid>
		<description>The primary advantage of using a far-future expires/cache-control header is that the browser doesn&#039;t need to make any request at all to use its locally cached assets, not even a 304 check.

You&#039;ll see a 304 when you force a refresh in some browsers, but no request at all when you&#039;re making regular requests to pages. Click around my site here (not manually refresh) and watch the network tab in your browser. You won&#039;t see an HTTP request for the Google CDN reference after it&#039;s been cached once (at least not for a year).</description>
		<content:encoded><![CDATA[<p>The primary advantage of using a far-future expires/cache-control header is that the browser doesn&#8217;t need to make any request at all to use its locally cached assets, not even a 304 check.</p>
<p>You&#8217;ll see a 304 when you force a refresh in some browsers, but no request at all when you&#8217;re making regular requests to pages. Click around my site here (not manually refresh) and watch the network tab in your browser. You won&#8217;t see an HTTP request for the Google CDN reference after it&#8217;s been cached once (at least not for a year).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

