<?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: Faster Page Loads &#8211; Bundle Your CSS and Javascript</title>
	<atom:link href="http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sat, 07 Nov 2009 23:35:20 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul Annesley</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-848972</link>
		<dc:creator>Paul Annesley</dc:creator>
		<pubDate>Mon, 15 Dec 2008 07:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-848972</guid>
		<description>Hi John,

Nearly two years later... :)

Yes - if each of your pages uses a different combination of stylesheets, then the stylesheet bundle for each new page will be a browser-cache miss on the first load.  So yes - in some cases it will cause redundancy of downloaded styles, causing slightly more data to be downloaded.

However without the bundling, there would be at least one cache miss anyway, for the non-cached individual CSS file - and possibly multiple misses.

There&#039;s no silver bullet, you just need to find the right balance.  I&#039;d almost always take a single slightly larger download over lots of small requests.  And if you take this into account when layout out your CSS, it&#039;s especially effective.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>Nearly two years later&#8230; :)</p>
<p>Yes &#8211; if each of your pages uses a different combination of stylesheets, then the stylesheet bundle for each new page will be a browser-cache miss on the first load.  So yes &#8211; in some cases it will cause redundancy of downloaded styles, causing slightly more data to be downloaded.</p>
<p>However without the bundling, there would be at least one cache miss anyway, for the non-cached individual CSS file &#8211; and possibly multiple misses.</p>
<p>There&#8217;s no silver bullet, you just need to find the right balance.  I&#8217;d almost always take a single slightly larger download over lots of small requests.  And if you take this into account when layout out your CSS, it&#8217;s especially effective.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-848570</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 14 Dec 2008 10:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-848570</guid>
		<description>@ Paul,

I request you to answer one thing that I am not able to understand.

&lt;blockquote&gt;@Eviltechie: The bundle will certainly be cached by the browser after the first load - we’re certainly not forcing every page to include all CSS and JS.&lt;/blockquote&gt;

My question is as follows: A webpage A links to a1.css, a2.css, and a3.css. These are bundled into one request (http://example.org/bundle/a1.css, a2.css, a3.css). These are bundled and compressed and sent to the browser, lets say as bundle B1. The browser caches the bundle B1. The user navigates to another webpage (on the same website) webpage B, which links to a1.css, a2.css, and a4.css. In this case, all three css files are downloaded again as bundle, lets say B2, though a1.css and a2.css are already present inside bundle B1 cached on the client machine. Are we creating a bandwidth overhead??

Please answer as soon as possible! Thanks in advance!</description>
		<content:encoded><![CDATA[<p>@ Paul,</p>
<p>I request you to answer one thing that I am not able to understand.</p>
<blockquote><p>@Eviltechie: The bundle will certainly be cached by the browser after the first load &#8211; we’re certainly not forcing every page to include all CSS and JS.</p></blockquote>
<p>My question is as follows: A webpage A links to a1.css, a2.css, and a3.css. These are bundled into one request (<a href="http://example.org/bundle/a1.css" rel="nofollow">http://example.org/bundle/a1.css</a>, a2.css, a3.css). These are bundled and compressed and sent to the browser, lets say as bundle B1. The browser caches the bundle B1. The user navigates to another webpage (on the same website) webpage B, which links to a1.css, a2.css, and a4.css. In this case, all three css files are downloaded again as bundle, lets say B2, though a1.css and a2.css are already present inside bundle B1 cached on the client machine. Are we creating a bandwidth overhead??</p>
<p>Please answer as soon as possible! Thanks in advance!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Winther</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-747050</link>
		<dc:creator>Christian Winther</dc:creator>
		<pubDate>Wed, 18 Jun 2008 09:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-747050</guid>
		<description>Hello

I have created such a script for ligghtpd (using mod_magnet and lua). It can be found at here:

&lt;a href=&quot;http://www.cakephp.nu/faster-page-loads-bundle-your-css-and-javascript-lighttpd-mod_magnet-lua&quot; rel=&quot;nofollow&quot;&gt;Faster page loads: Bundle your css and javascript with lighttpd and mod_magnet (lua)&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I have created such a script for ligghtpd (using mod_magnet and lua). It can be found at here:</p>
<p><a href="http://www.cakephp.nu/faster-page-loads-bundle-your-css-and-javascript-lighttpd-mod_magnet-lua" rel="nofollow">Faster page loads: Bundle your css and javascript with lighttpd and mod_magnet (lua)</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-576489</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 29 Dec 2007 19:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-576489</guid>
		<description>Hmmm, old thing I&#039;ve found on the Internet, but I need to say that any effort to speed things up for the end-user is good effort. That said, the idea is great!</description>
		<content:encoded><![CDATA[<p>Hmmm, old thing I&#8217;ve found on the Internet, but I need to say that any effort to speed things up for the end-user is good effort. That said, the idea is great!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ramesh effic</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-244094</link>
		<dc:creator>ramesh effic</dc:creator>
		<pubDate>Thu, 10 May 2007 04:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-244094</guid>
		<description>can i set proxy page until original page is downloaded from server

in jsp</description>
		<content:encoded><![CDATA[<p>can i set proxy page until original page is downloaded from server</p>
<p>in jsp</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AlexW</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-233913</link>
		<dc:creator>AlexW</dc:creator>
		<pubDate>Thu, 26 Apr 2007 00:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-233913</guid>
		<description>&lt;blockquote&gt;It seems to me that most of this effort is pointless. In almost all cases CSS, JS, and images are cached by the browser after the first view. Thus, when viewing a second page on the same site, it shouldn’t be making more requests for CSS or JS files, and should only request the images it hasn’t already cached.&lt;/blockquote&gt;

That&#039;s assuming they get as far as looking at a second page. Many people will typically be loading 3,4 or 5 tabs simultaneously, and if one of those hasn&#039;t started rendering a usable page in a few seconds. they&#039;ll click the &#039;X&#039; and concentrate on the other tabs that have. 

A user hasn&#039;t received anything of value for you at that point so they have no perception of loss if they leave. That makes the first ever page load far more important than &lt;strong&gt;any&lt;/strong&gt; future page load.

Even if the user knows your site but hasn&#039;t visited for a few months (so no cached version) getting them the first page load quickly is critical to getting them to re-commit to you and not an alternative site. This is equally true whether you&#039;re running a blog, a forum, an online store or a content site.</description>
		<content:encoded><![CDATA[<blockquote><p>It seems to me that most of this effort is pointless. In almost all cases CSS, JS, and images are cached by the browser after the first view. Thus, when viewing a second page on the same site, it shouldn’t be making more requests for CSS or JS files, and should only request the images it hasn’t already cached.</p></blockquote>
<p>That&#8217;s assuming they get as far as looking at a second page. Many people will typically be loading 3,4 or 5 tabs simultaneously, and if one of those hasn&#8217;t started rendering a usable page in a few seconds. they&#8217;ll click the &#8216;X&#8217; and concentrate on the other tabs that have. </p>
<p>A user hasn&#8217;t received anything of value for you at that point so they have no perception of loss if they leave. That makes the first ever page load far more important than <strong>any</strong> future page load.</p>
<p>Even if the user knows your site but hasn&#8217;t visited for a few months (so no cached version) getting them the first page load quickly is critical to getting them to re-commit to you and not an alternative site. This is equally true whether you&#8217;re running a blog, a forum, an online store or a content site.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Annesley</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-233875</link>
		<dc:creator>Paul Annesley</dc:creator>
		<pubDate>Wed, 25 Apr 2007 23:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-233875</guid>
		<description>@Eviltechie: The bundle will certainly be cached by the browser after the first load - we&#039;re certainly not forcing every page to include all CSS and JS.

@bart: Also keep in mind that clicking the reload button in Firefox is different to visiting the page again - you&#039;re telling Firefox that you want to re-download the content.</description>
		<content:encoded><![CDATA[<p>@Eviltechie: The bundle will certainly be cached by the browser after the first load &#8211; we&#8217;re certainly not forcing every page to include all CSS and JS.</p>
<p>@bart: Also keep in mind that clicking the reload button in Firefox is different to visiting the page again &#8211; you&#8217;re telling Firefox that you want to re-download the content.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bart</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-233784</link>
		<dc:creator>bart</dc:creator>
		<pubDate>Wed, 25 Apr 2007 19:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-233784</guid>
		<description>OK. I think I was wrong in the last comment. It seems that Firebug may be a bit misleading for displaying the css and js files as not cached. When you click to see the headers of the css and js files there is a timestamp. If you navigate through the site and the timestamp doesn&#039;t change, then I guess it&#039;s safe to assume that FF cached the files. I also tried something else. To verify I cleared browser cache and then input about:cache in the address bar in a new tag. Both memory cache and disk cache were 0. Then I refreshed the page in question and refreshed the about:cache tab. The correct number of requests was displayed in both memory and disk caches. When you drill down you&#039;ll see that the files are in one of the caches.</description>
		<content:encoded><![CDATA[<p>OK. I think I was wrong in the last comment. It seems that Firebug may be a bit misleading for displaying the css and js files as not cached. When you click to see the headers of the css and js files there is a timestamp. If you navigate through the site and the timestamp doesn&#8217;t change, then I guess it&#8217;s safe to assume that FF cached the files. I also tried something else. To verify I cleared browser cache and then input about:cache in the address bar in a new tag. Both memory cache and disk cache were 0. Then I refreshed the page in question and refreshed the about:cache tab. The correct number of requests was displayed in both memory and disk caches. When you drill down you&#8217;ll see that the files are in one of the caches.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: busy</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-233778</link>
		<dc:creator>busy</dc:creator>
		<pubDate>Wed, 25 Apr 2007 19:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-233778</guid>
		<description>@eviltechie
I don&#039;t think it&#039;s pointless. It&#039;s true what you say about caching for future page loads, but the point of this is to speed up loading for someone&#039;s first impression of your site. Regardless if you think first impressions aren&#039;t valuable enough to warrant the extra work, that&#039;s the point of the article.

Also why do you say subsequent loads using this method won&#039;t cache? It&#039;s the exact same request for pages that use the same combination of files, so why wouldn&#039;t it? If another one is added in the mix on another page you would still have to download it before it would be cached anyways, so I don&#039;t see any difference in downloading the new bundle for that page.</description>
		<content:encoded><![CDATA[<p>@eviltechie<br />
I don&#8217;t think it&#8217;s pointless. It&#8217;s true what you say about caching for future page loads, but the point of this is to speed up loading for someone&#8217;s first impression of your site. Regardless if you think first impressions aren&#8217;t valuable enough to warrant the extra work, that&#8217;s the point of the article.</p>
<p>Also why do you say subsequent loads using this method won&#8217;t cache? It&#8217;s the exact same request for pages that use the same combination of files, so why wouldn&#8217;t it? If another one is added in the mix on another page you would still have to download it before it would be cached anyways, so I don&#8217;t see any difference in downloading the new bundle for that page.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bart</title>
		<link>http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/comment-page-1/#comment-233774</link>
		<dc:creator>bart</dc:creator>
		<pubDate>Wed, 25 Apr 2007 19:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1896#comment-233774</guid>
		<description>I&#039;ve noticed that Firefox 2 does not cache js and css files at all. I&#039;m using firebug to verify this. If you hit refresh none of the files are cached. Only when you navigate back to the page you came from will you see that images were cached and js and css were not. Can anyone verify that this is default behavior in FF or is this some setting I turned on and forgot about. Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that Firefox 2 does not cache js and css files at all. I&#8217;m using firebug to verify this. If you hit refresh none of the files are cached. Only when you navigate back to the page you came from will you see that images were cached and js and css were not. Can anyone verify that this is default behavior in FF or is this some setting I turned on and forgot about. Thanks.</p>]]></content:encoded>
	</item>
</channel>
</rss>
