title: Run function after user has stopped typing
body: <p>I have an input field in which user can input a long value. This value is then used as input value in a complex time consuming function.</p>
  
  <p>My question is: how can I start execution of this function approximately 1 second after the user finished his typing? (I don't want to run it after each key press as it is really slowing the page). So if his next keystroke is in the 1s limit from the last key stroke, than wait additional second.</p>
  
  <p>Do you have any suggestions?</p>
  
  <p>additional note: I also need to pass some parameters into this function</p>