<?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"
	>
<channel>
	<title>Comments on: Improve Javascript-Load Speeds</title>
	<atom:link href="http://adityamukherjee.com/geekaholic/archives/377/feed" rel="self" type="application/rss+xml" />
	<link>http://adityamukherjee.com/geekaholic/archives/377</link>
	<description>Warning: Geek Inside!</description>
	<pubDate>Thu, 28 Aug 2008 17:03:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Aditya</title>
		<link>http://adityamukherjee.com/geekaholic/archives/377#comment-688</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Thu, 27 Mar 2008 19:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://adityamukherjee.com/geekaholic/archives/377#comment-688</guid>
		<description>&lt;p&gt;"&lt;em&gt;Many times we have inter-dependencies between two javascript files.&lt;/em&gt;"&lt;/p&gt;

&lt;p&gt;This method takes care of that too. Suppose your custom JS-file is dependent on jQuery to work. In the &lt;code&gt;onSuccess&lt;/code&gt; handler of your call to the custom script file, put in a check to see if &lt;code&gt;jQuery&lt;/code&gt; exists. If it doesn't, fire a &lt;code&gt;setTimeout&lt;/code&gt; to check again after &lt;em&gt;x&lt;/em&gt; seconds, and then evaluate the script as required.&lt;/p&gt;

&lt;p&gt;That is the 'awesome' factor of bootstrapping your scripts. You can use script-level conditions to make sure everything works exactly the way you want it, and isn't left to network speeds, browser dependencies etc.. Too many variables spoil the broth.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;<em>Many times we have inter-dependencies between two javascript files.</em>&#8221;</p>

<p>This method takes care of that too. Suppose your custom JS-file is dependent on jQuery to work. In the <code>onSuccess</code> handler of your call to the custom script file, put in a check to see if <code>jQuery</code> exists. If it doesn&#8217;t, fire a <code>setTimeout</code> to check again after <em>x</em> seconds, and then evaluate the script as required.</p>

<p>That is the &#8216;awesome&#8217; factor of bootstrapping your scripts. You can use script-level conditions to make sure everything works exactly the way you want it, and isn&#8217;t left to network speeds, browser dependencies etc.. Too many variables spoil the broth.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://adityamukherjee.com/geekaholic/archives/377#comment-687</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Thu, 27 Mar 2008 12:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://adityamukherjee.com/geekaholic/archives/377#comment-687</guid>
		<description>&lt;p&gt;Nice work. As I have agreed before, fallback mechanisms and error handling are essential in any code we write. The file being ready is only one part. Many times we have inter-dependencies between two javascript files. That's where the problem starts. I haven't given much thought to that even if some people commented about this issue. You know I'm lazy. :P&lt;/p&gt;

&lt;p&gt;That said, yours is a cool way of doing the eval.&lt;/p&gt;

&lt;p&gt;PS: OpenID again started to fail for me here. After validation in my claimID, it returns back here and says "Incorrect Password"!!! What the hell is that supposed to mean? :o&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice work. As I have agreed before, fallback mechanisms and error handling are essential in any code we write. The file being ready is only one part. Many times we have inter-dependencies between two javascript files. That&#8217;s where the problem starts. I haven&#8217;t given much thought to that even if some people commented about this issue. You know I&#8217;m lazy. :P</p>

<p>That said, yours is a cool way of doing the eval.</p>

<p>PS: OpenID again started to fail for me here. After validation in my claimID, it returns back here and says &#8220;Incorrect Password&#8221;!!! What the hell is that supposed to mean? :o</p>]]></content:encoded>
	</item>
</channel>
</rss>
