<?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: How you can force the Ajax Script Loader to use jQuery 1.4</title>
	<atom:link href="http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/</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: leny</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-42024</link>
		<dc:creator>leny</dc:creator>
		<pubDate>Sat, 05 Feb 2011 04:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-42024</guid>
		<description>or you can use the google.load() method, but if a new version it&#039;s out and you&#039;re comfortable using Sys.require([Sys.scripts.jQuery]); just edit and work with a local copy of star.js by the time you&#039;re done with the app the final release of ms start.js should have the new stuff.
plus in development time you could even ad jquery UI like so..
&lt;pre lang=&quot;x&quot;&gt;

     { name: &quot;jQuery&quot;,
         releaseUrl: ajaxPath + &quot;jquery/jquery-1.5.min.js&quot;,
         debugUrl: ajaxPath + &quot;jquery/jquery-1.5.js&quot;,
         isLoaded: !!window.jQuery
     },          
     { name: &quot;jQueryUI&quot;,
         releaseUrl: ajaxPath + &quot;jquery.ui/1.8.9/jquery-ui.min.js&quot;,
         debugUrl: ajaxPath + &quot;jquery.ui/1.8.9/jquery-ui.js&quot;,
         isLoaded: !!window.jQuery
     },
&lt;/pre&gt;
http://l3ny.com/chrome.jpg

@l3ny</description>
		<content:encoded><![CDATA[<p>or you can use the google.load() method, but if a new version it&#8217;s out and you&#8217;re comfortable using Sys.require([Sys.scripts.jQuery]); just edit and work with a local copy of star.js by the time you&#8217;re done with the app the final release of ms start.js should have the new stuff.<br />
plus in development time you could even ad jquery UI like so..</p>

<div class="wp_syntax"><div class="code"><pre class="x" style="font-family:monospace;">&nbsp;
     { name: &quot;jQuery&quot;,
         releaseUrl: ajaxPath + &quot;jquery/jquery-1.5.min.js&quot;,
         debugUrl: ajaxPath + &quot;jquery/jquery-1.5.js&quot;,
         isLoaded: !!window.jQuery
     },          
     { name: &quot;jQueryUI&quot;,
         releaseUrl: ajaxPath + &quot;jquery.ui/1.8.9/jquery-ui.min.js&quot;,
         debugUrl: ajaxPath + &quot;jquery.ui/1.8.9/jquery-ui.js&quot;,
         isLoaded: !!window.jQuery
     },</pre></div></div>

<p><a href="http://l3ny.com/chrome.jpg" rel="nofollow">http://l3ny.com/chrome.jpg</a></p>
<p>@l3ny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-40035</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 06 Oct 2010 17:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-40035</guid>
		<description>It&#039;s okay to use the // address, just specify the full jQuery version instead of &quot;1&quot;.</description>
		<content:encoded><![CDATA[<p>It&#8217;s okay to use the // address, just specify the full jQuery version instead of &#8220;1&#8243;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: light and simple</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-40034</link>
		<dc:creator>light and simple</dc:creator>
		<pubDate>Wed, 06 Oct 2010 17:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-40034</guid>
		<description>Thanks, Dave. Very comprehensive explanation. I want an approach I can use without thinking too much about it. I found the &quot;//&quot; solutions to URLs very useful in SSL and want the same kind of blanket approach for jQuery CDN linking. What do you suggest then?</description>
		<content:encoded><![CDATA[<p>Thanks, Dave. Very comprehensive explanation. I want an approach I can use without thinking too much about it. I found the &#8220;//&#8221; solutions to URLs very useful in SSL and want the same kind of blanket approach for jQuery CDN linking. What do you suggest then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-40033</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 06 Oct 2010 17:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-40033</guid>
		<description>You should never use the &quot;latest version&quot; URL. It only sets a 1 hour expires header instead of 1 year. For repeat visitors, that&#039;s probably even slower than hosting jQuery on your local server.  See more here:

http://encosia.com/2010/09/15/6953-reasons-why-i-still-let-google-host-jquery-for-me/

http://paulirish.com/2009/caching-and-googles-ajax-libraries-api/</description>
		<content:encoded><![CDATA[<p>You should never use the &#8220;latest version&#8221; URL. It only sets a 1 hour expires header instead of 1 year. For repeat visitors, that&#8217;s probably even slower than hosting jQuery on your local server.  See more here:</p>
<p><a href="http://encosia.com/2010/09/15/6953-reasons-why-i-still-let-google-host-jquery-for-me/" rel="nofollow">http://encosia.com/2010/09/15/6953-reasons-why-i-still-let-google-host-jquery-for-me/</a></p>
<p><a href="http://paulirish.com/2009/caching-and-googles-ajax-libraries-api/" rel="nofollow">http://paulirish.com/2009/caching-and-googles-ajax-libraries-api/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: light and simple</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-40027</link>
		<dc:creator>light and simple</dc:creator>
		<pubDate>Wed, 06 Oct 2010 16:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-40027</guid>
		<description>Use this script link:

&lt;pre lang=&quot;html&quot;&gt;&lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;&gt;&lt;/script&gt;&lt;/pre&gt;

Omitting the protocol and jQuery version will give you SSL compatibility + latest version. Google also provides the jQuery UI and jQuery UI themes which you can link to in the same fashion in terms of omitting protocol and version to always have the latest version. I haven&#039;t run into a situation yet where using a script loader was necessary as it increases overhead.</description>
		<content:encoded><![CDATA[<p>Use this script link:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span>script&gt;</span></pre></div></div>

<p>Omitting the protocol and jQuery version will give you SSL compatibility + latest version. Google also provides the jQuery UI and jQuery UI themes which you can link to in the same fashion in terms of omitting protocol and version to always have the latest version. I haven&#8217;t run into a situation yet where using a script loader was necessary as it increases overhead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-39358</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Tue, 13 Jul 2010 22:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-39358</guid>
		<description>Great post! By the way you can also add some shorcut to &quot;onReady&quot;, check this!

&lt;pre lang=&quot;javascript&quot;&gt;
// Instruct the script loader to request
//  jQuery and jQuery Validate in the background,
//  The callback runs later, after both jQuery
//  and jQuery Validate have been loaded.
Sys.require([Sys.scripts.jQuery, Sys.scripts.jQueryValidate], function() {
  console.log(&quot;Loaded jQuery &quot; + jQuery.fn.jquery);   
 });
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Great post! By the way you can also add some shorcut to &#8220;onReady&#8221;, check this!</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Instruct the script loader to request</span>
<span style="color: #006600; font-style: italic;">//  jQuery and jQuery Validate in the background,</span>
<span style="color: #006600; font-style: italic;">//  The callback runs later, after both jQuery</span>
<span style="color: #006600; font-style: italic;">//  and jQuery Validate have been loaded.</span>
Sys.<span style="color: #660066;">require</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>Sys.<span style="color: #660066;">scripts</span>.<span style="color: #660066;">jQuery</span><span style="color: #339933;">,</span> Sys.<span style="color: #660066;">scripts</span>.<span style="color: #660066;">jQueryValidate</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Loaded jQuery &quot;</span> <span style="color: #339933;">+</span> jQuery.<span style="color: #660066;">fn</span>.<span style="color: #660066;">jquery</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Maloney</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38484</link>
		<dc:creator>Ryan Maloney</dc:creator>
		<pubDate>Thu, 22 Apr 2010 12:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38484</guid>
		<description>Thanks for the fast response and the heads up on the future of start.js.</description>
		<content:encoded><![CDATA[<p>Thanks for the fast response and the heads up on the future of start.js.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38476</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 22 Apr 2010 00:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38476</guid>
		<description>There&#039;s a copy of start.js at this location:

http://ajax.microsoft.com/ajax/act/40412/start.js

Long-term, I think they&#039;re focusing on a more generalized version of start.js&#039; script loader that would work easier in conjunction with jQuery or even be part of jQuery core. So, maybe not scraping it, so much as revamping it.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a copy of start.js at this location:</p>
<p><a href="http://ajax.microsoft.com/ajax/act/40412/start.js" rel="nofollow">http://ajax.microsoft.com/ajax/act/40412/start.js</a></p>
<p>Long-term, I think they&#8217;re focusing on a more generalized version of start.js&#8217; script loader that would work easier in conjunction with jQuery or even be part of jQuery core. So, maybe not scraping it, so much as revamping it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Maloney</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38473</link>
		<dc:creator>Ryan Maloney</dc:creator>
		<pubDate>Wed, 21 Apr 2010 21:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38473</guid>
		<description>Do you know what happened to the script loader since the VS2010 release?  I know the Ajax Library was merged with the control toolkit but there is no where on the microsoft cdn anymore to get a reference to start.js.  I grabbed the toolkit source and it looks like they have a reference to start.js but it is buried in the site demo.  I can&#039;t find documentation anywhere.  Is Microsoft scrapping this?</description>
		<content:encoded><![CDATA[<p>Do you know what happened to the script loader since the VS2010 release?  I know the Ajax Library was merged with the control toolkit but there is no where on the microsoft cdn anymore to get a reference to start.js.  I grabbed the toolkit source and it looks like they have a reference to start.js but it is buried in the site demo.  I can&#8217;t find documentation anywhere.  Is Microsoft scrapping this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38019</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 11 Feb 2010 17:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38019</guid>
		<description>Personally, I&#039;ve almost always used script elements. Going forward, I suspect I&#039;ll be using the script loader often.

The patterns and practices &lt;a href=&quot;http://webclientguidance.codeplex.com/&quot; rel=&quot;nofollow&quot;&gt;&quot;V.Next&quot; web guidance&lt;/a&gt; is going to include a document that discusses methods for including scripts, and the sample application makes heavy use of the script loader (which led to discovering and finding solutions for interesting real-world problems around using it).</description>
		<content:encoded><![CDATA[<p>Personally, I&#8217;ve almost always used script elements. Going forward, I suspect I&#8217;ll be using the script loader often.</p>
<p>The patterns and practices <a href="http://webclientguidance.codeplex.com/" rel="nofollow">&#8220;V.Next&#8221; web guidance</a> is going to include a document that discusses methods for including scripts, and the sample application makes heavy use of the script loader (which led to discovering and finding solutions for interesting real-world problems around using it).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Robbins</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37965</link>
		<dc:creator>David Robbins</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37965</guid>
		<description>It seems to me that there are several pathways or approaches to encorporating jQuery into ASP.Net, whether it be MS Ajax with ScriptManager, a simple reference in your WebForm, etc.  I&#039;ve read your series for about a year now on different techniques and wondered if you considered putting a road map of the different approaches, and maybe links to the posts respective to each &quot;style&quot;?  Maybe a permanent page?

Anyway, I enjoyed the post as always.</description>
		<content:encoded><![CDATA[<p>It seems to me that there are several pathways or approaches to encorporating jQuery into ASP.Net, whether it be MS Ajax with ScriptManager, a simple reference in your WebForm, etc.  I&#8217;ve read your series for about a year now on different techniques and wondered if you considered putting a road map of the different approaches, and maybe links to the posts respective to each &#8220;style&#8221;?  Maybe a permanent page?</p>
<p>Anyway, I enjoyed the post as always.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37935</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37935</guid>
		<description>I agree that it should be consistent.  I&#039;m not sure why they chose to always use the CDN.</description>
		<content:encoded><![CDATA[<p>I agree that it should be consistent.  I&#8217;m not sure why they chose to always use the CDN.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Webb</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37931</link>
		<dc:creator>Robin Webb</dc:creator>
		<pubDate>Mon, 01 Feb 2010 15:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37931</guid>
		<description>Thanks for your replies to my questions Dave - very useful.

I&#039;m still not clear on why the start.js contains a hard coded reference to ajax.microsoft.com/ajax for jQuery when the other Microsoft libraries react to the location of start.js (local or CDN).

&lt;pre lang=&quot;javascript&quot;&gt;var ajaxPath = (window.location.protocol === &quot;https&quot; ? &quot;https&quot; : &quot;http&quot;) + &quot;://ajax.microsoft.com/ajax/&quot;;&lt;/pre&gt;

Is this by design?</description>
		<content:encoded><![CDATA[<p>Thanks for your replies to my questions Dave &#8211; very useful.</p>
<p>I&#8217;m still not clear on why the start.js contains a hard coded reference to ajax.microsoft.com/ajax for jQuery when the other Microsoft libraries react to the location of start.js (local or CDN).</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> ajaxPath <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">protocol</span> <span style="color: #339933;">===</span> <span style="color: #3366CC;">&quot;https&quot;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;https&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;://ajax.microsoft.com/ajax/&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Is this by design?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37930</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 01 Feb 2010 15:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37930</guid>
		<description>1.  When the script loader injects a &lt;script&gt; element, the browser can still act on that by loading a cached version if appropriate.  That still depends on the expires header, as usual.

2. You can use this same &quot;patching&quot; approach to change the reference to a local location, or edit the script definitions in start.js.  Alternatively, you could define a new jQueryLocal script definition with loader.defineScripts().

3. Yes.  It&#039;s not as sophisticated (e.g. how would you handle loading two scripts with dependencies using $.getScript), but uses the same type of asynchronous loading approach.</description>
		<content:encoded><![CDATA[<p>1.  When the script loader injects a &lt;script&gt; element, the browser can still act on that by loading a cached version if appropriate.  That still depends on the expires header, as usual.</p>
<p>2. You can use this same &#8220;patching&#8221; approach to change the reference to a local location, or edit the script definitions in start.js.  Alternatively, you could define a new jQueryLocal script definition with loader.defineScripts().</p>
<p>3. Yes.  It&#8217;s not as sophisticated (e.g. how would you handle loading two scripts with dependencies using $.getScript), but uses the same type of asynchronous loading approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Webb</title>
		<link>http://encosia.com/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37928</link>
		<dc:creator>Robin Webb</dc:creator>
		<pubDate>Mon, 01 Feb 2010 14:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37928</guid>
		<description>Thanks for another very useful article.

I&#039;ve just started to see the light with the ajax client script loader and there are obvious benefits.

Three questions:

1. Does the script loader consider locally cached versions of the scripts, i.e. on my PC (C:\Documents and Settings\administrator\Local Settings\Temporary Internet Files)? Would it consider this before downloading from a CDN/local web server?

2. I noticed that pointing start.js at a local web server () pulls in local versions of the Microsoft scripts but uses the CDN URL for jQuery. Why is this? And what is the best way to override? I have an intranet web server that has no internet access and therefore no CDN access, which is a problem if the start.js is hard coded into the 1.3.2 path on a CDN.

3. Is the jQuery ($.getScript...) doing something similar to the loader, i.e. asnychnronous loading of scripts?</description>
		<content:encoded><![CDATA[<p>Thanks for another very useful article.</p>
<p>I&#8217;ve just started to see the light with the ajax client script loader and there are obvious benefits.</p>
<p>Three questions:</p>
<p>1. Does the script loader consider locally cached versions of the scripts, i.e. on my PC (C:\Documents and Settings\administrator\Local Settings\Temporary Internet Files)? Would it consider this before downloading from a CDN/local web server?</p>
<p>2. I noticed that pointing start.js at a local web server () pulls in local versions of the Microsoft scripts but uses the CDN URL for jQuery. Why is this? And what is the best way to override? I have an intranet web server that has no internet access and therefore no CDN access, which is a problem if the start.js is hard coded into the 1.3.2 path on a CDN.</p>
<p>3. Is the jQuery ($.getScript&#8230;) doing something similar to the loader, i.e. asnychnronous loading of scripts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

