<?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-To: Load Javascript and CSS dynamically with jQuery</title>
	<atom:link href="http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/</link>
	<description>Ruby, Rails, Web Technology, Varied Miscellanea</description>
	<lastBuildDate>Wed, 03 Nov 2010 02:19:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Flu</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-4671</link>
		<dc:creator>Flu</dc:creator>
		<pubDate>Tue, 26 Oct 2010 20:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-4671</guid>
		<description>Hmm... same problem gr8karma had... the &lt;link&gt; is missing at the beginning.</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; same problem gr8karma had&#8230; the &lt;link&gt; is missing at the beginning.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flu</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-4670</link>
		<dc:creator>Flu</dc:creator>
		<pubDate>Tue, 26 Oct 2010 20:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-4670</guid>
		<description>The Attributes can be set directly:
	$(&#039;&#039;, {
		rel: &#039;stylesheet&#039;,
		type: &#039;text/css&#039;,
		href: &#039;/javascripts/jwysiwyg/jquery.wysiwyg.css&#039;
	}).appendTo(&#039;head&#039;);</description>
		<content:encoded><![CDATA[<p>The Attributes can be set directly:<br />
	$(&#8221;, {<br />
		rel: &#8216;stylesheet&#8217;,<br />
		type: &#8216;text/css&#8217;,<br />
		href: &#8216;/javascripts/jwysiwyg/jquery.wysiwyg.css&#8217;<br />
	}).appendTo(&#8216;head&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew D</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-4570</link>
		<dc:creator>Matthew D</dc:creator>
		<pubDate>Wed, 21 Jul 2010 22:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-4570</guid>
		<description>As for setting a Timeout its a little sketch, as the request/processing of the js may take longer than 250.

I ran across a similar situation, a chose instead to use a non-asynchronous ajax call.

$.ajax({
   url: &#039;path/to/js.js&#039;,
   dataType: &#039;script&#039;,
   async: false
});

Then place your function call after that. That way it will only run after the js has been retrieved and loaded.</description>
		<content:encoded><![CDATA[<p>As for setting a Timeout its a little sketch, as the request/processing of the js may take longer than 250.</p>
<p>I ran across a similar situation, a chose instead to use a non-asynchronous ajax call.</p>
<p>$.ajax({<br />
   url: &#8216;path/to/js.js&#8217;,<br />
   dataType: &#8216;script&#8217;,<br />
   async: false<br />
});</p>
<p>Then place your function call after that. That way it will only run after the js has been retrieved and loaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-4341</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 24 Mar 2010 18:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-4341</guid>
		<description>Check out the jQuery docs, getScript supports a callback, so you cna put your .wysiwyg function inside of that callback</description>
		<content:encoded><![CDATA[<p>Check out the jQuery docs, getScript supports a callback, so you cna put your .wysiwyg function inside of that callback</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gr8karma</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-3310</link>
		<dc:creator>gr8karma</dc:creator>
		<pubDate>Tue, 15 Dec 2009 17:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-3310</guid>
		<description>whoops, there should be a &lt;link&gt; in side the jquery selector...

$(&lt;link&gt;)</description>
		<content:encoded><![CDATA[<p>whoops, there should be a &lt;link&gt; in side the jquery selector&#8230;</p>
<p>$(&lt;link&gt;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gr8karma</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-3309</link>
		<dc:creator>gr8karma</dc:creator>
		<pubDate>Tue, 15 Dec 2009 17:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-3309</guid>
		<description>You can simplify the element creation a bit using the power of jquery chaining. Try the appendTo method, instead of append:

$(&#039;&#039;).appendTo(&#039;head&#039;).attr({
    rel: &#039;stylesheet&#039;,
    type: &#039;text/css&#039;,
    href: &#039;/javascripts/jwysiwyg/jquery.wysiwyg.css&#039;
});</description>
		<content:encoded><![CDATA[<p>You can simplify the element creation a bit using the power of jquery chaining. Try the appendTo method, instead of append:</p>
<p>$(&#8221;).appendTo(&#8216;head&#8217;).attr({<br />
    rel: &#8216;stylesheet&#8217;,<br />
    type: &#8216;text/css&#8217;,<br />
    href: &#8216;/javascripts/jwysiwyg/jquery.wysiwyg.css&#8217;<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thegreatdao</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-3175</link>
		<dc:creator>thegreatdao</dc:creator>
		<pubDate>Tue, 27 Oct 2009 19:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-3175</guid>
		<description>you should omit the parenthesis in the code of setting timer which should result in setTimeout(&quot;init_wysiwyg_editor&quot;,250);
then you won&#039;t get that errror</description>
		<content:encoded><![CDATA[<p>you should omit the parenthesis in the code of setting timer which should result in setTimeout(&#8220;init_wysiwyg_editor&#8221;,250);<br />
then you won&#8217;t get that errror</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cha cha</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-3023</link>
		<dc:creator>cha cha</dc:creator>
		<pubDate>Mon, 05 Oct 2009 09:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-3023</guid>
		<description>i dig it</description>
		<content:encoded><![CDATA[<p>i dig it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 網站製作學習誌 &#187; [Web] 連結分享</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-2934</link>
		<dc:creator>網站製作學習誌 &#187; [Web] 連結分享</dc:creator>
		<pubDate>Tue, 22 Sep 2009 04:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-2934</guid>
		<description>[...] How-To: Load Javascript and CSS dynamically with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] How-To: Load Javascript and CSS dynamically with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis Aveiga</title>
		<link>http://topsecretproject.finitestatemachine.com/2009/09/how-to-load-javascript-and-css-dynamically-with-jquery/comment-page-1/#comment-2900</link>
		<dc:creator>Luis Aveiga</dc:creator>
		<pubDate>Fri, 18 Sep 2009 21:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://topsecretproject.finitestatemachine.com/?p=111#comment-2900</guid>
		<description>Hi! Thanks for the post...

I&#039;m trying to load CSS dynamically depending on resolution. Probably your code will help me.

I&#039;ll try it now. Thanks!
Luis</description>
		<content:encoded><![CDATA[<p>Hi! Thanks for the post&#8230;</p>
<p>I&#8217;m trying to load CSS dynamically depending on resolution. Probably your code will help me.</p>
<p>I&#8217;ll try it now. Thanks!<br />
Luis</p>
]]></content:encoded>
	</item>
</channel>
</rss>

