jquery-debounce-throttle

1.0.6-rc.0 • Public • Published

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

  • 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.

LICENSE

Dual licensed under the MIT and GPL licenses:

Package Sidebar

Install

npm i jquery-debounce-throttle

Weekly Downloads

545

Version

1.0.6-rc.0

License

MIT

Unpacked Size

3.15 kB

Total Files

3

Last publish

Collaborators

  • a.batin