<?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: Performance Impact of CSS Selectors</title>
	<atom:link href="http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/</link>
	<description>Essential knowledge for making your web pages faster.</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:46:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: andrej</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-3234</link>
		<dc:creator>andrej</dc:creator>
		<pubDate>Sun, 17 Apr 2011 16:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-3234</guid>
		<description>Very interesting post.

Is there any further inquiery or research been done into css performance?

I have been reading up on object oriented css lately - and the most important take-away from oocss is that already specified rules are performance freebies. Is there any correlation between the your finding and oocss?</description>
		<content:encoded><![CDATA[<p>Very interesting post.</p>
<p>Is there any further inquiery or research been done into css performance?</p>
<p>I have been reading up on object oriented css lately &#8211; and the most important take-away from oocss is that already specified rules are performance freebies. Is there any correlation between the your finding and oocss?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-2985</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 27 Jan 2011 20:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-2985</guid>
		<description>According to the full comment from David Hyatt regarding performance speed is likely less of the issue than memory utilization. 

Nowadays browsers can consume 150mb per tab or window. While the speed maybe saved by the use of more memory to handle a page the performance impact is there.

As users multitask on their laptops/desktops it must be considered that multiple apps are running. A web page causing an increase in 150mb or more in memory usage could make the computer seem slow and as a result the user starts closing tabs/windows and ... your page.</description>
		<content:encoded><![CDATA[<p>According to the full comment from David Hyatt regarding performance speed is likely less of the issue than memory utilization. </p>
<p>Nowadays browsers can consume 150mb per tab or window. While the speed maybe saved by the use of more memory to handle a page the performance impact is there.</p>
<p>As users multitask on their laptops/desktops it must be considered that multiple apps are running. A web page causing an increase in 150mb or more in memory usage could make the computer seem slow and as a result the user starts closing tabs/windows and &#8230; your page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaron Shapira</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-2881</link>
		<dc:creator>Yaron Shapira</dc:creator>
		<pubDate>Mon, 27 Dec 2010 08:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-2881</guid>
		<description>Great article and discussion.  I like using long selector chains like #kwrap #kheader ul li a because it lets me see the html structure as I work on the CSS.  I also sometimes do stuff like ...span#notices for the same reason.  I realize now that these are (possibly terribly) inefficient selectors but has anyone seen any tests on what impact these might actually have in real world situation? (say &gt;500 dom nodes, &gt;500 selectors and &gt;1000 total rules)</description>
		<content:encoded><![CDATA[<p>Great article and discussion.  I like using long selector chains like #kwrap #kheader ul li a because it lets me see the html structure as I work on the CSS.  I also sometimes do stuff like &#8230;span#notices for the same reason.  I realize now that these are (possibly terribly) inefficient selectors but has anyone seen any tests on what impact these might actually have in real world situation? (say &gt;500 dom nodes, &gt;500 selectors and &gt;1000 total rules)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Souders</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-2628</link>
		<dc:creator>Steve Souders</dc:creator>
		<pubDate>Sun, 31 Oct 2010 16:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-2628</guid>
		<description>@willabee: please read the conclusion: &quot;For most web sites, the possible performance gains from optimizing CSS selectors will be small, and are not worth the costs. There are some types of CSS rules and interactions with JavaScript that can make a page noticeably slower. This is where the focus should be.&quot;</description>
		<content:encoded><![CDATA[<p>@willabee: please read the conclusion: &#8220;For most web sites, the possible performance gains from optimizing CSS selectors will be small, and are not worth the costs. There are some types of CSS rules and interactions with JavaScript that can make a page noticeably slower. This is where the focus should be.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willabee</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-2627</link>
		<dc:creator>Willabee</dc:creator>
		<pubDate>Sun, 31 Oct 2010 15:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-2627</guid>
		<description>From information given here and elsewhere, the optimisation seems to point towards adding class names to quickly target subject nodes in order to gain a few ms of performance. 

Considering:
* Increased (maybe drastically) page weight.
* The extra mark-up render time.
* Increased style-sheet weight.
* The CSS will cache for most users.
* The extra maintenance effort to update the mark-up with these class names.
* The extra maintenance effort to make modifications to the presentation layer.

For just a few ms!!!
We&#039;ve got to be kidding. 
Its almost like going back to presentational tag soup.

CSS inheritance is the nearest thing to event delegation. This, along with over-rides (more specific) should be the focus for performance across presentation and behaviour layers IMO.</description>
		<content:encoded><![CDATA[<p>From information given here and elsewhere, the optimisation seems to point towards adding class names to quickly target subject nodes in order to gain a few ms of performance. </p>
<p>Considering:<br />
* Increased (maybe drastically) page weight.<br />
* The extra mark-up render time.<br />
* Increased style-sheet weight.<br />
* The CSS will cache for most users.<br />
* The extra maintenance effort to update the mark-up with these class names.<br />
* The extra maintenance effort to make modifications to the presentation layer.</p>
<p>For just a few ms!!!<br />
We&#8217;ve got to be kidding.<br />
Its almost like going back to presentational tag soup.</p>
<p>CSS inheritance is the nearest thing to event delegation. This, along with over-rides (more specific) should be the focus for performance across presentation and behaviour layers IMO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buckthorn</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-1888</link>
		<dc:creator>Buckthorn</dc:creator>
		<pubDate>Tue, 30 Mar 2010 13:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-1888</guid>
		<description>Thanks for the article. The book may still be out on measuring the exact performance effects of css optimization. But what I take away from things like Speed Test and Hyatt&#039;s comments is that for many of us, there is probably plenty of room for optimization. Assigning IDs and classes is obviously ridiculous. But at the same time, we would do well to avoid being lazy and leaning too heavily on things like &quot;multi-multi-level&quot; contextual and descendant selectors (e.g., &quot;ul li p span a&quot;), and redundant, &quot;overqualified&quot; IDs and classes (e.g., &quot;body#home&quot;, &quot;div.column&quot;).</description>
		<content:encoded><![CDATA[<p>Thanks for the article. The book may still be out on measuring the exact performance effects of css optimization. But what I take away from things like Speed Test and Hyatt&#8217;s comments is that for many of us, there is probably plenty of room for optimization. Assigning IDs and classes is obviously ridiculous. But at the same time, we would do well to avoid being lazy and leaning too heavily on things like &#8220;multi-multi-level&#8221; contextual and descendant selectors (e.g., &#8220;ul li p span a&#8221;), and redundant, &#8220;overqualified&#8221; IDs and classes (e.g., &#8220;body#home&#8221;, &#8220;div.column&#8221;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stoimen</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-1784</link>
		<dc:creator>stoimen</dc:creator>
		<pubDate>Wed, 10 Mar 2010 12:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-1784</guid>
		<description>Whatever the gain size is, isn&#039;t it a good practice to optimize whatever you can. 

OK, it cannot be the most important part of a web site optimization process, but it doesn&#039;t slows down the page, isn&#039;t it!</description>
		<content:encoded><![CDATA[<p>Whatever the gain size is, isn&#8217;t it a good practice to optimize whatever you can. </p>
<p>OK, it cannot be the most important part of a web site optimization process, but it doesn&#8217;t slows down the page, isn&#8217;t it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Souders</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-1666</link>
		<dc:creator>Steve Souders</dc:creator>
		<pubDate>Mon, 22 Feb 2010 17:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-1666</guid>
		<description>@Dave: Hi! There&#039;s a link to the &quot;test pages&quot; above, but here it is again: http://stevesouders.com/tests/css-selectors/index.html

I ran these on my ThinkPad x61 on Windows XP. I don&#039;t have that laptop any more, so don&#039;t have memory, CPU, etc. info for you.</description>
		<content:encoded><![CDATA[<p>@Dave: Hi! There&#8217;s a link to the &#8220;test pages&#8221; above, but here it is again: <a href="http://stevesouders.com/tests/css-selectors/index.html" rel="nofollow">http://stevesouders.com/tests/css-selectors/index.html</a></p>
<p>I ran these on my ThinkPad x61 on Windows XP. I don&#8217;t have that laptop any more, so don&#8217;t have memory, CPU, etc. info for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Artz</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-1664</link>
		<dc:creator>Dave Artz</dc:creator>
		<pubDate>Mon, 22 Feb 2010 15:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-1664</guid>
		<description>Steve, could you publish and link to your test page scripts?  I&#039;d like to run these benchmarks on our reference machine (3GHz P4 512MB).  

What machine config did you run these tests on?</description>
		<content:encoded><![CDATA[<p>Steve, could you publish and link to your test page scripts?  I&#8217;d like to run these benchmarks on our reference machine (3GHz P4 512MB).  </p>
<p>What machine config did you run these tests on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach</title>
		<link>http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/#comment-1621</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Tue, 16 Feb 2010 09:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=267#comment-1621</guid>
		<description>Great article. Had been wondering about this for quite awhile.</description>
		<content:encoded><![CDATA[<p>Great article. Had been wondering about this for quite awhile.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

