<?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: jQuery.getScript() does not cache</title>
	<atom:link href="http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/</link>
	<description>Web Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:06:18 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Patrick</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-878</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 04 Jul 2011 19:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-878</guid>
		<description>Made my day :)</description>
		<content:encoded><![CDATA[<p>Made my day <img src='http://jamiethompson.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-871</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 09 Jun 2011 16:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-871</guid>
		<description>Hi, are you sure about the script not caching as one of the first questions on the jQuery documentation page for  .getScript() states that it DOES cache!!

See here: http://api.jquery.com/jQuery.getScript/</description>
		<content:encoded><![CDATA[<p>Hi, are you sure about the script not caching as one of the first questions on the jQuery documentation page for  .getScript() states that it DOES cache!!</p>
<p>See here: <a href="http://api.jquery.com/jQuery.getScript/" rel="nofollow">http://api.jquery.com/jQuery.getScript/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery does not cache in $.html() &#8211; LabIn.cc Blog</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-857</link>
		<dc:creator>jQuery does not cache in $.html() &#8211; LabIn.cc Blog</dc:creator>
		<pubDate>Wed, 06 Apr 2011 10:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-857</guid>
		<description>[...] 解法參照http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/ 原來$.getScript()也有同樣的問題， 解法就是使用jQuery低階ajax API 。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 解法參照http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/ 原來$.getScript()也有同樣的問題， 解法就是使用jQuery低階ajax API 。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-841</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 23 Mar 2011 13:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-841</guid>
		<description>Works perfectly, thank you!</description>
		<content:encoded><![CDATA[<p>Works perfectly, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tips Trick Design Blog</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-838</link>
		<dc:creator>Tips Trick Design Blog</dc:creator>
		<pubDate>Sun, 27 Feb 2011 11:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-838</guid>
		<description>Please Help Me !!!</description>
		<content:encoded><![CDATA[<p>Please Help Me !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery.getScript() does not cache – Jamie Thompson &#124; Source code bank</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-301</link>
		<dc:creator>jQuery.getScript() does not cache – Jamie Thompson &#124; Source code bank</dc:creator>
		<pubDate>Mon, 12 Apr 2010 14:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-301</guid>
		<description>[...] more here: jQuery.getScript() does not cache – Jamie Thompson   If you enjoyed this article please consider sharing [...]</description>
		<content:encoded><![CDATA[<p>[...] more here: jQuery.getScript() does not cache – Jamie Thompson   If you enjoyed this article please consider sharing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-206</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Thu, 29 Oct 2009 19:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-206</guid>
		<description>Brilliant! Thanks. I&#039;m grateful for folks who take the time to post solutions to little issues like this. Good job.

Incidentally, I can confirm that in use the script that is retrieved does indeed get executed without a callback specified.</description>
		<content:encoded><![CDATA[<p>Brilliant! Thanks. I&#8217;m grateful for folks who take the time to post solutions to little issues like this. Good job.</p>
<p>Incidentally, I can confirm that in use the script that is retrieved does indeed get executed without a callback specified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-205</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 22 Sep 2009 03:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-205</guid>
		<description>Christian: &quot;It should be noted that using $.ajax(…) like explained above will only work, if the caller provides a callback. Therefore this re-definition of getScript does not everything that getScript does - it will not auto-execute the code, if no callback is specified.&quot;

I think you&#039;re mistaken. I&#039;m finding the solution performs as stated on FF 3.5, Safari 4 and IE 6 &amp; 7.

Looking the jquery source show&#039;s that since the dataType is set to &quot;script&quot;, jquery builds a script tag and sets the src attribute to the url passed. This occurs around line 3473 in jQuery 1.3.2.</description>
		<content:encoded><![CDATA[<p>Christian: &#8220;It should be noted that using $.ajax(…) like explained above will only work, if the caller provides a callback. Therefore this re-definition of getScript does not everything that getScript does &#8211; it will not auto-execute the code, if no callback is specified.&#8221;</p>
<p>I think you&#8217;re mistaken. I&#8217;m finding the solution performs as stated on FF 3.5, Safari 4 and IE 6 &amp; 7.</p>
<p>Looking the jquery source show&#8217;s that since the dataType is set to &#8220;script&#8221;, jquery builds a script tag and sets the src attribute to the url passed. This occurs around line 3473 in jQuery 1.3.2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-204</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Mon, 22 Jun 2009 10:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-204</guid>
		<description>P.S. - those who do not want to use eval(..), for example because the YUI compressor will then do less minification, can also do that:

$.get(url, {},
function(data){ (new Function(data))(); }
);

This will create a function around the loaded code and then execute this function, which will not affect Yahoo&#039;s minification behavior.</description>
		<content:encoded><![CDATA[<p>P.S. &#8211; those who do not want to use eval(..), for example because the YUI compressor will then do less minification, can also do that:</p>
<p>$.get(url, {},<br />
function(data){ (new Function(data))(); }<br />
);</p>
<p>This will create a function around the loaded code and then execute this function, which will not affect Yahoo&#8217;s minification behavior.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://jamiethompson.co.uk/web/2008/07/21/jquerygetscript-does-not-cache/comment-page-1/#comment-203</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Mon, 22 Jun 2009 09:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/?p=88#comment-203</guid>
		<description>This post is rather old, but since people continue to comment, I thought, I may do so as well.

It should be noted that using $.ajax(...) like explained above will only work, if the caller provides a callback. Therefore this re-definition of getScript does not everything that getScript does - it will not auto-execute the code, if no callback is specified.

Loading and executing a script while allowing caching, can also be done like that:

$.get(url, {},
  function(data){eval(data);}
);

In that case, the browser will just issue a normal get request without any added parameters.</description>
		<content:encoded><![CDATA[<p>This post is rather old, but since people continue to comment, I thought, I may do so as well.</p>
<p>It should be noted that using $.ajax(&#8230;) like explained above will only work, if the caller provides a callback. Therefore this re-definition of getScript does not everything that getScript does &#8211; it will not auto-execute the code, if no callback is specified.</p>
<p>Loading and executing a script while allowing caching, can also be done like that:</p>
<p>$.get(url, {},<br />
  function(data){eval(data);}<br />
);</p>
<p>In that case, the browser will just issue a normal get request without any added parameters.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

