title: Throttle event calls in jQuery
body: <p>I have a <code>keyup</code> event bound to a function that takes about a quarter of a second to complete.</p>
  
  <pre><code>$("#search").keyup(function() {
    //code that takes a little bit to complete
  });
  </code></pre>
  
  <p>When a user types an entire word, or otherwise presses keys rapidly, the function will be called several times in succession and it will take a while for them all to complete.</p>
  
  <p>Is there a way to throttle the event calls so that if there are several in rapid succession, it only triggers the one that was most recently called?</p>