1.0.6-rc.0 • Published 4 years ago
jquery-debounce-throttle v1.0.6-rc.0
##Debouncing
debouncedFn = $.debounce(fn, timeout, [invokeAsap], [context]);
Options
fn
Original function.
timeout
Delay.
invokeAsap
True/false, false by default. Parameter indicating which of the above debouncing options should be used (the first is used by default).
context
Context of the original function.
##Throttling
throttledFn = $.throttle(fn, period, [context]);
Options
fn
Original function.
period
Period.
context
Context of the original function.