<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Languages of the real and artificial - Latest Comments in jQuery Profile Plugin</title><link>http://osteele.disqus.com/</link><description></description><atom:link href="https://osteele.disqus.com/jquery_profile_plugin/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 03 Jun 2008 02:58:20 -0000</lastBuildDate><item><title>Re: jQuery Profile Plugin</title><link>http://blog.osteele.com/archives/2008/05/jquery-profile-plugin#comment-4881249</link><description>&lt;p&gt;My initialisation code (essentially setting up various event handlers in jQuery) was taking far too long.  After profiling my code (manually, not using the plugin you mentioned) it occurred to me that I was being too lazy with some of my selectors. So replacing ...&lt;/p&gt;&lt;p&gt;// Slow.&lt;br&gt;$('.class').click(somefunction);&lt;/p&gt;&lt;p&gt;... with ....&lt;/p&gt;&lt;p&gt;// Speedy. JQuery probably uses getElementsByTagName to speed up.&lt;br&gt;$('div.class').click(somefunction);&lt;/p&gt;&lt;p&gt;... made a drastic improvement in performance.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Goodwin</dc:creator><pubDate>Tue, 03 Jun 2008 02:58:20 -0000</pubDate></item></channel></rss>