<?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: Make a diet, serve just one CSS and one JS</title>
	<atom:link href="http://www.francodacosta.com/development/make-a-diet-serve-just-one-css-and-one-js/feed" rel="self" type="application/rss+xml" />
	<link>http://www.francodacosta.com/development/make-a-diet-serve-just-one-css-and-one-js</link>
	<description>because it is!</description>
	<lastBuildDate>Fri, 04 May 2012 07:08:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: nuno costa</title>
		<link>http://www.francodacosta.com/development/make-a-diet-serve-just-one-css-and-one-js/comment-page-1#comment-14546</link>
		<dc:creator>nuno costa</dc:creator>
		<pubDate>Thu, 26 Apr 2012 07:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.francodacosta.com/blog/?p=514#comment-14546</guid>
		<description>@Pavlov

The size of the files is only relevant if you setup more than one host for your files.

Most browsers restrict the number of simultaneous connections to the same host, so having multiple files to download can be an huge problem (js + css + images all on the same host can lead to an increased waiting time)

Concurrency seems to be the key when talking about performance.

I usually organize my files in the following way:
* libraries and code used on all/most pages in one file
* page specific code on a separate file

I found this setup to work nicely for me.

Don&#039;t forget about browser caching, if it is cached it won&#039;t be downloaded again.
This setup will make sure that the response time is quick, as the global files are only downloaded one time

Another option is to lazy load the javascript files, but in most cases the advantage wont be that great when compared to the extra work you need to have</description>
		<content:encoded><![CDATA[<p>@Pavlov</p>
<p>The size of the files is only relevant if you setup more than one host for your files.</p>
<p>Most browsers restrict the number of simultaneous connections to the same host, so having multiple files to download can be an huge problem (js + css + images all on the same host can lead to an increased waiting time)</p>
<p>Concurrency seems to be the key when talking about performance.</p>
<p>I usually organize my files in the following way:<br />
* libraries and code used on all/most pages in one file<br />
* page specific code on a separate file</p>
<p>I found this setup to work nicely for me.</p>
<p>Don&#8217;t forget about browser caching, if it is cached it won&#8217;t be downloaded again.<br />
This setup will make sure that the response time is quick, as the global files are only downloaded one time</p>
<p>Another option is to lazy load the javascript files, but in most cases the advantage wont be that great when compared to the extra work you need to have</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todor Pavlov</title>
		<link>http://www.francodacosta.com/development/make-a-diet-serve-just-one-css-and-one-js/comment-page-1#comment-14545</link>
		<dc:creator>Todor Pavlov</dc:creator>
		<pubDate>Thu, 26 Apr 2012 07:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.francodacosta.com/blog/?p=514#comment-14545</guid>
		<description>Yes, I agree with you - it depends on the size of the files - if they are smaller 2 files will be fine but if they are bigger (jquery, jquery ui, kendo ui, datatables or combination of them) it is best to be separated in more files.
Unfortunately there is no silver bullet as you sad and every site should be tested and the best solution implemented</description>
		<content:encoded><![CDATA[<p>Yes, I agree with you &#8211; it depends on the size of the files &#8211; if they are smaller 2 files will be fine but if they are bigger (jquery, jquery ui, kendo ui, datatables or combination of them) it is best to be separated in more files.<br />
Unfortunately there is no silver bullet as you sad and every site should be tested and the best solution implemented</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nuno costa</title>
		<link>http://www.francodacosta.com/development/make-a-diet-serve-just-one-css-and-one-js/comment-page-1#comment-14544</link>
		<dc:creator>nuno costa</dc:creator>
		<pubDate>Thu, 26 Apr 2012 07:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.francodacosta.com/blog/?p=514#comment-14544</guid>
		<description>@Pavlov

I don&#039;t really agree with with you

Serving 4 files instead of one is a performance problem, you will be serving the same amount of data but with the overhead of making 4 network connections.

The time it takes to setup a network connection and wait for the first byte to arrive is a considerable slice of the total download time

There is no silver bullet when talking about performance. we need to test and see what works best for our specific case, but as a rule of thumb the less files the better</description>
		<content:encoded><![CDATA[<p>@Pavlov</p>
<p>I don&#8217;t really agree with with you</p>
<p>Serving 4 files instead of one is a performance problem, you will be serving the same amount of data but with the overhead of making 4 network connections.</p>
<p>The time it takes to setup a network connection and wait for the first byte to arrive is a considerable slice of the total download time</p>
<p>There is no silver bullet when talking about performance. we need to test and see what works best for our specific case, but as a rule of thumb the less files the better</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todor Pavlov</title>
		<link>http://www.francodacosta.com/development/make-a-diet-serve-just-one-css-and-one-js/comment-page-1#comment-14543</link>
		<dc:creator>Todor Pavlov</dc:creator>
		<pubDate>Thu, 26 Apr 2012 07:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.francodacosta.com/blog/?p=514#comment-14543</guid>
		<description>Hi,
This is a good idea but is not very efficient because the browser is loading several files at once and if you give him two big files it may take more time to load them. Of course it is good to combine css and js if they are many but they should be combined in more than 2 files (4 or 6)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This is a good idea but is not very efficient because the browser is loading several files at once and if you give him two big files it may take more time to load them. Of course it is good to combine css and js if they are many but they should be combined in more than 2 files (4 or 6)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

