title: Is there a performance difference between jquery selector or a variable
body: <p>Lately i have been wondering if there is a performance difference between repeating the selector just over and over again or just using a var and store the selector in that and just refer to it.</p>
  
  <pre><code>$('#Element').dothis();
  
  $('#Element').dothat();
  
  $('#Element').find('a').dothat();
  </code></pre>
  
  <p>or just</p>
  
  <pre><code>var Object = $('#Element');
  
  Object.dothis();
  
  Object.dothat();
  
  $('a', Object).dothat();
  </code></pre>
  
  <p>I prefer the second way because it looks cleaner and is better maintainable.</p>