<?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: Improve your jQuery Selectors: 5 Quick Tips</title>
	<atom:link href="http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html</link>
	<description>Web Design Magazine</description>
	<lastBuildDate>Wed, 06 Jul 2011 03:12:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: David O'Trakoun</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-12204</link>
		<dc:creator>David O'Trakoun</dc:creator>
		<pubDate>Fri, 09 Jul 2010 16:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-12204</guid>
		<description>I&#039;d have to look at the source again but I think the discrepancy here is between sizzle and jquey. Jquery&#039;s find is a wrapper for sizzle, whereas jquery(&quot;selector selector&quot;) will iteratively call .find() -- sizzle -- in the order of jquery&#039;s logic</description>
		<content:encoded><![CDATA[<p>I&#8217;d have to look at the source again but I think the discrepancy here is between sizzle and jquey. Jquery&#8217;s find is a wrapper for sizzle, whereas jquery(&#8220;selector selector&#8221;) will iteratively call .find() &#8212; sizzle &#8212; in the order of jquery&#8217;s logic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan J. Brauer</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-11962</link>
		<dc:creator>Nathan J. Brauer</dc:creator>
		<pubDate>Fri, 02 Jul 2010 10:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-11962</guid>
		<description>Actually, it&#039;s my understanding that sizzle goes both ways.  Take this as an example:

jQuery(&quot;div.header ul&quot;)

It will first look for all &quot;ul&quot; nodes.
Then within that list, it will make sure one of its parents is a &quot;div&quot; node
Lastly it will narrow those nodes down to the class (&quot;.header&quot;)

Thus, it is faster to do this:
jQuery(&#039;ul&#039;,&#039;div.header&#039;)

Which is equivalent to this:
jQuery(&#039;div.header&#039;).find(&#039;ul&#039;)

------
Or the other way around:
jQuery(&quot;div.tasks p.urgent&quot;)
1. looks for all &#039;p&#039;
2. narrows all p&#039;s to .urgent
3. makes sure one of its parents is a div node
4. makes sure one of its div parents has .tasks class

Better:
jQuery(&#039;p.urgent&#039;,&#039;div.tasks&#039;)
same as:
jQuery(&#039;div.tasks&#039;).find(&#039;p.urgent&#039;)

Let me know if I&#039;m wrong :)</description>
		<content:encoded><![CDATA[<p>Actually, it&#8217;s my understanding that sizzle goes both ways.  Take this as an example:</p>
<p>jQuery(&#8220;div.header ul&#8221;)</p>
<p>It will first look for all &#8220;ul&#8221; nodes.<br />
Then within that list, it will make sure one of its parents is a &#8220;div&#8221; node<br />
Lastly it will narrow those nodes down to the class (&#8220;.header&#8221;)</p>
<p>Thus, it is faster to do this:<br />
jQuery(&#8216;ul&#8217;,'div.header&#8217;)</p>
<p>Which is equivalent to this:<br />
jQuery(&#8216;div.header&#8217;).find(&#8216;ul&#8217;)</p>
<p>&#8212;&#8212;<br />
Or the other way around:<br />
jQuery(&#8220;div.tasks p.urgent&#8221;)<br />
1. looks for all &#8216;p&#8217;<br />
2. narrows all p&#8217;s to .urgent<br />
3. makes sure one of its parents is a div node<br />
4. makes sure one of its div parents has .tasks class</p>
<p>Better:<br />
jQuery(&#8216;p.urgent&#8217;,'div.tasks&#8217;)<br />
same as:<br />
jQuery(&#8216;div.tasks&#8217;).find(&#8216;p.urgent&#8217;)</p>
<p>Let me know if I&#8217;m wrong <img src='http://www.thewebsqueeze.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Rodrigues</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-11961</link>
		<dc:creator>Ricardo Rodrigues</dc:creator>
		<pubDate>Fri, 02 Jul 2010 08:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-11961</guid>
		<description>Good article, I have only two comments:

1) The Avoid Extra Traversing second code block is missing one double quotation mark

2) On the var myElement = $(&quot;div#elem&quot;); piece of code, you didn&#039;t use the $varName, meaning preceding a jQuery object variable with the dollar sign, but you didn&#039;t below, I use this all the time and it&#039;s a readability candy!</description>
		<content:encoded><![CDATA[<p>Good article, I have only two comments:</p>
<p>1) The Avoid Extra Traversing second code block is missing one double quotation mark</p>
<p>2) On the var myElement = $(&#8220;div#elem&#8221;); piece of code, you didn&#8217;t use the $varName, meaning preceding a jQuery object variable with the dollar sign, but you didn&#8217;t below, I use this all the time and it&#8217;s a readability candy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David O'Trakoun</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-11935</link>
		<dc:creator>David O'Trakoun</dc:creator>
		<pubDate>Thu, 01 Jul 2010 15:00:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-11935</guid>
		<description>@Mike

Your expectations are actually correct regarding Sizzle.find
the default setting for Sizzle is to use ID specificity first
after which it goes from left to right

see http://wiki.github.com/jeresig/sizzle/</description>
		<content:encoded><![CDATA[<p>@Mike</p>
<p>Your expectations are actually correct regarding Sizzle.find<br />
the default setting for Sizzle is to use ID specificity first<br />
after which it goes from left to right</p>
<p>see <a href="http://wiki.github.com/jeresig/sizzle/" rel="nofollow">http://wiki.github.com/jeresig/sizzle/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Grabner</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-11925</link>
		<dc:creator>Andreas Grabner</dc:creator>
		<pubDate>Thu, 01 Jul 2010 11:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-11925</guid>
		<description>Unfortunately the latest versions of IE (6, 7 &amp; 8) do not support getElementsByClassName - therefore I believe the author is spot on. Of course - if you only develop for modern browsers than this is a different deal - but - I guess that every web app out there will still get a lot of hits from IE - and you need to care about them too.</description>
		<content:encoded><![CDATA[<p>Unfortunately the latest versions of IE (6, 7 &amp; <img src='http://www.thewebsqueeze.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> do not support getElementsByClassName &#8211; therefore I believe the author is spot on. Of course &#8211; if you only develop for modern browsers than this is a different deal &#8211; but &#8211; I guess that every web app out there will still get a lot of hits from IE &#8211; and you need to care about them too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ain</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-11918</link>
		<dc:creator>Ain</dc:creator>
		<pubDate>Thu, 01 Jul 2010 09:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-11918</guid>
		<description>The author is well wrong in point one about the class selectors. Select by class is optimised on modern platforms, WebKit added support for getElementsByClassName back in 2007: http://tekkie.flashbit.net/browsers/webkit-adds-getelementsbyclassname</description>
		<content:encoded><![CDATA[<p>The author is well wrong in point one about the class selectors. Select by class is optimised on modern platforms, WebKit added support for getElementsByClassName back in 2007: <a href="http://tekkie.flashbit.net/browsers/webkit-adds-getelementsbyclassname" rel="nofollow">http://tekkie.flashbit.net/browsers/webkit-adds-getelementsbyclassname</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maicon Sobczak</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/improve-your-jquery-selectors-5-quick-tips.html/comment-page-1/#comment-11877</link>
		<dc:creator>Maicon Sobczak</dc:creator>
		<pubDate>Wed, 30 Jun 2010 12:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=5119#comment-11877</guid>
		<description>Valuable tips. Specially about contextual information.</description>
		<content:encoded><![CDATA[<p>Valuable tips. Specially about contextual information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

