Taken from Chapter 6: Essential JavaScript & jQuery of Programming in HTML5 with JavaScript and CSS3 by Glenn Johnson. I wrote this out along with code examples as part of my study material for ...
A function to be executed after delay milliseconds. javascript-debounce is based on David Walsh's code and article JavaScript Debounce Function. His site is an invaluable resource for Web developers.