title: How to delay the .keyup() handler until the user stops typing?
body: <p>I’ve got a search field. Right now it searches for every keyup. So if someone types “Windows”, it will make a search with AJAX for every keyup: “W”, “Wi”, “Win”, “Wind”, “Windo”, “Window”, “Windows”.</p>
  
  <p>I want to have a delay, so it only searches when the user stops typing for 200 ms.</p>
  
  <p>There is no option for this in the <code>keyup</code> function, and I have tried <code>setTimeout</code>, but it didn’t work.</p>
  
  <p>How can I do that?</p>