Which jQuery selector is more efficient?
<p>I was just wondering if there is a reason why I should prefer this</p>

<pre><code>&lt;div class="identifying-class"&gt;bla bla&lt;/div&gt;
&lt;div class="identifying-class"&gt;bla bla&lt;/div&gt;
var interestingElements = $("div.identifying-class);
</code></pre>

<p>over this</p>

<pre><code>&lt;div data-identifying-attr="true"&gt;bla bla&lt;/div&gt;
&lt;div data-identifying-attr="true"&gt;bla bla&lt;/div&gt;
var interestingElements = $("div[data-identifying-attr]");
</code></pre>

<p>Are attribute based selectors quicker /slower/the same speed as class based selectors?
Is one method deemed better practice than the other - if so why?</p>
