Source
Can be found here: https://github.com/dfilatov/jquery-plugins/tree/master/src/jquery.debounce
Repository: https://github.com/dfilatov/jquery-plugins
Debouncing
debouncedFn = $.debounce(fn, timeout, [invokeAsap], [context]);
Options
fnOriginal function.
timeoutDelay.
invokeAsapTrue/false, false by default. Parameter indicating which of the above debouncing options should be used (the first is used by default).
contextContext of the original function.
Throttling
throttledFn = $.throttle(fn, period, [context]);
Options
fnOriginal function.
periodPeriod.
contextContext of the original function.
LICENSE
Dual licensed under the MIT and GPL licenses: