request-idle-callback
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5727
39