An open API service indexing awesome lists of open source software.

https://github.com/hanford/request-callback

requestIdleCallback polyfill
https://github.com/hanford/request-callback

javascipt npmjs open-source requestanimationframe requestidlecallback

Last synced: about 1 month ago
JSON representation

requestIdleCallback polyfill

Awesome Lists containing this project

README

        

# request-callback

> defer heavy operations to when the browser has resources

## Install

```
$ npm install --save request-callback
```

## Usage

```js
const requestCallback = require('request-callback')

// defer heavy operations
function HeavyFn () {
..
}

requestCallback(heavyFn)
```

## API

### requestCallback(callback)

Invokes function on nextTick

## License

MIT © [Jack Hanford](https://jackhanford.com)