Skip to content

Commit 688bf9e

Browse files
author
aFarkas
committed
improves inactive throttle
1 parent a7c3c3a commit 688bf9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#`requestIdleCallback` polyfill/shim [![Build Status](https://api.travis-ci.org/aFarkas/requestIdleCallback.svg?branch=master)](https://travis-ci.org/aFarkas/requestIdleCallback)
22

3-
This is a polyfill/shim for the `requestIdleCallback` and `cancelIdleCallback` API. Form more information see the [Cooperative Scheduling of Background Tasks Draft](http://www.w3.org/TR/requestidlecallback/).
3+
This is a polyfill/shim for the `requestIdleCallback` and `cancelIdleCallback` API. Also fixes early API implementation.
4+
5+
For more information see the [Cooperative Scheduling of Background Tasks Draft](http://www.w3.org/TR/requestidlecallback/).
46

57
##Installation
68
Include the "index.js" in your website and use `requestIdleCallback` and `cancelIdleCallback` according to the specification.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
};
3737
var setInacitve = debounce(function(){
3838
remainingTime = 25;
39-
throttle = 33;
39+
throttle = 66;
4040
minThrottle = 0;
4141
});
4242

0 commit comments

Comments
 (0)