JSPM

jquery-debounce-throttle

1.0.6-rc.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 328
  • Score
    100M100P100Q86809F
  • License MIT

jQuery debounce and throttle functions

Package Exports

  • jquery-debounce-throttle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jquery-debounce-throttle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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: