<?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: LABjs: why not just concat?</title>
	<atom:link href="http://blog.getify.com/labjs-why-not-just-concat/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.getify.com/labjs-why-not-just-concat/</link>
	<description>javascript, performance, and ui musings</description>
	<lastBuildDate>Mon, 07 May 2012 16:42:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Dan</title>
		<link>http://blog.getify.com/labjs-why-not-just-concat/comment-page-1/#comment-2327</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 07 May 2012 16:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.getify.com/?p=97#comment-2327</guid>
		<description>Surely the other benchmark you need to run here for the full picture is when caching is used. I notice that you&#039;ve deliberately disabled caching in your requests to show the actual download time between a concatenated file and your load on demand. Interestingly, my results are sometimes longer for the labJS solution.

A more realistic scenario IMHO would be to compare any  typical homepage which may have around 10 different JS files (eg. jquery, jquery UI, Knockout, modernizr, etc.etc) and illustrate that as one file vs many files when caching is optimised. I think you&#039;ll see that for all but the first request, a single concat file will be quicker the more individual files are included. There are only so many that will load in parallel.

Where I think this way of loading really wins is only loading what you actually need. Personally, I&#039;m less worried about how long a script takes to download (given I can optimise that) than I am about whether I actually need the script at all. There&#039;s obviously no point spending time processing a script I&#039;m not using. I quite like the fact that you can can customize many libraries, for instance jQuery UI lets you build a JS file containing only those parts of the UI you&#039;re actually using on your site.</description>
		<content:encoded><![CDATA[<p>Surely the other benchmark you need to run here for the full picture is when caching is used. I notice that you&#8217;ve deliberately disabled caching in your requests to show the actual download time between a concatenated file and your load on demand. Interestingly, my results are sometimes longer for the labJS solution.</p>
<p>A more realistic scenario IMHO would be to compare any  typical homepage which may have around 10 different JS files (eg. jquery, jquery UI, Knockout, modernizr, etc.etc) and illustrate that as one file vs many files when caching is optimised. I think you&#8217;ll see that for all but the first request, a single concat file will be quicker the more individual files are included. There are only so many that will load in parallel.</p>
<p>Where I think this way of loading really wins is only loading what you actually need. Personally, I&#8217;m less worried about how long a script takes to download (given I can optimise that) than I am about whether I actually need the script at all. There&#8217;s obviously no point spending time processing a script I&#8217;m not using. I quite like the fact that you can can customize many libraries, for instance jQuery UI lets you build a JS file containing only those parts of the UI you&#8217;re actually using on your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.getify.com/labjs-why-not-just-concat/comment-page-1/#comment-2133</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 10 May 2011 18:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.getify.com/?p=97#comment-2133</guid>
		<description>@Klevak

If you scroll to the beginning of the article, you&#039;ll see this paragraph:

&lt;blockquote&gt;The short answer is, BOTH! You should concat files together when possible, and you should load your file(s) with a loader like LABjs. If you only do one or the other, you have missed out on the bigger picture of page-load optimization.&lt;/blockquote&gt;

That way you reduce HTTP requests, and you prevent the single, large JS file from blocking the rendering of the page as it loads.</description>
		<content:encoded><![CDATA[<p>@Klevak</p>
<p>If you scroll to the beginning of the article, you&#8217;ll see this paragraph:</p>
<blockquote><p>The short answer is, BOTH! You should concat files together when possible, and you should load your file(s) with a loader like LABjs. If you only do one or the other, you have missed out on the bigger picture of page-load optimization.</p></blockquote>
<p>That way you reduce HTTP requests, and you prevent the single, large JS file from blocking the rendering of the page as it loads.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: klevak</title>
		<link>http://blog.getify.com/labjs-why-not-just-concat/comment-page-1/#comment-1420</link>
		<dc:creator>klevak</dc:creator>
		<pubDate>Thu, 28 Oct 2010 01:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.getify.com/?p=97#comment-1420</guid>
		<description>For developers with web sites that DO get over 160,000,000 page views a month, this post appears to concede that using LAB.js versus concatenating and minifying JavaScript into a single file adds little value.  Considering that the majority of our visitors spend 10-15 minutes surfing our site, it&#039;s it enough to rely on the browsers caching mechanisms? Am I missing something?</description>
		<content:encoded><![CDATA[<p>For developers with web sites that DO get over 160,000,000 page views a month, this post appears to concede that using LAB.js versus concatenating and minifying JavaScript into a single file adds little value.  Considering that the majority of our visitors spend 10-15 minutes surfing our site, it&#8217;s it enough to rely on the browsers caching mechanisms? Am I missing something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filipe Martins</title>
		<link>http://blog.getify.com/labjs-why-not-just-concat/comment-page-1/#comment-585</link>
		<dc:creator>Filipe Martins</dc:creator>
		<pubDate>Tue, 07 Sep 2010 17:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.getify.com/?p=97#comment-585</guid>
		<description>I&#039;m not claiming that a 200ms or 1s delay isn&#039;t noticeable. I&#039;m saying that it probably won&#039;t be important because it&#039;s a one time only thing (don&#039;t we love the cache?).
I do agree with you about the visual feedback, though.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not claiming that a 200ms or 1s delay isn&#8217;t noticeable. I&#8217;m saying that it probably won&#8217;t be important because it&#8217;s a one time only thing (don&#8217;t we love the cache?).<br />
I do agree with you about the visual feedback, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: getify</title>
		<link>http://blog.getify.com/labjs-why-not-just-concat/comment-page-1/#comment-584</link>
		<dc:creator>getify</dc:creator>
		<pubDate>Tue, 07 Sep 2010 12:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.getify.com/?p=97#comment-584</guid>
		<description>&quot;One second&quot; was kind of an exaggeration. It&#039;s been shown that users can perceive a delay if it&#039;s over 200ms, which is quite possible if there&#039;s a decent sized JavaScript file (or several) that need to be loaded when a user clicks a button. Of course, even a really small file could take 200ms if there&#039;s high network latency involved. Because you can&#039;t really guarantee someone&#039;s connection speeds, I&#039;d tend to assume loading files when a button is clicked &lt;strong&gt;could&lt;/strong&gt; have a noticeable delay and would avoid it. 

But certainly if you are going to do this, give some sort of visual indication (like a loader/spinner) even for the short loads (so that it&#039;s present if the load is really long) so users aren&#039;t multiple-clicking things because they click and don&#039;t see a response quickly enough.</description>
		<content:encoded><![CDATA[<p>&#8220;One second&#8221; was kind of an exaggeration. It&#8217;s been shown that users can perceive a delay if it&#8217;s over 200ms, which is quite possible if there&#8217;s a decent sized JavaScript file (or several) that need to be loaded when a user clicks a button. Of course, even a really small file could take 200ms if there&#8217;s high network latency involved. Because you can&#8217;t really guarantee someone&#8217;s connection speeds, I&#8217;d tend to assume loading files when a button is clicked <strong>could</strong> have a noticeable delay and would avoid it. </p>
<p>But certainly if you are going to do this, give some sort of visual indication (like a loader/spinner) even for the short loads (so that it&#8217;s present if the load is really long) so users aren&#8217;t multiple-clicking things because they click and don&#8217;t see a response quickly enough.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Content Delivery Network via getiblog.2static.it

Served from: blog.getify.com @ 2012-05-18 07:33:18 -->
