Skip to content

tricot-inc/requestidlecallback-polyfill

Repository files navigation

requestidlecallback-polyfill

window.requestIdleCallback polyfill and Types for requestIdleCallback.

Install

$ yarn add @tricot-inc/requestidlecallback-polyfill

Usage

import '@tricot-inc/requestidlecallback-polyfill';

window.requestIdleCallback(doFunction);

Contributing

  1. Fork.
  2. Create a feature branch.
  3. Run test suite with the $ yarn test command and confirm that is passes.
  4. Commit your changes.
  5. Rebase your local changes against the main branch.
  6. Create new Pull Request.

Bugs, feature requests and comments are more than welcome in the issues.

Development scripts

Build

Run build with tsc.

$ yarn build

Lint

Run lint with ESLint, gts

$ yarn lint

Test

Run Unit test with Jest.

$ yarn test

Format

Run formatting with gts fix and Prettier.

$ yarn format

License

MIT © tricot inc.