Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

request-idle-callback

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-idle-callback - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json

@@ -34,3 +34,3 @@ {

},
"version": "1.0.1"
"version": "1.0.2"
}

@@ -11,5 +11,5 @@ # Request Idle Callback Shim

``` js
var requestIdleCallback = require('request-idle-callback')
var ric = require('request-idle-callback')
// Executes myNonEssentialWork duting idle time on each frame or fallbacks to using setTimeout to run at most 50ms per frame
requestIdleCallback(myNonEssentialWork);
ric.requestIdleCallback(myNonEssentialWork);

@@ -31,2 +31,6 @@ function myNonEssentialWork (deadline) {

### cancelIdleCallback(id)
Removes callback from the queue or calls clearTimeout.
## Tests

@@ -33,0 +37,0 @@ `node tests.js`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc