Skip to content

Commit 1369749

Browse files
committed
Disable use of requestIdleCallback in util/misc. Revert back to using setTimeout so the delays are guaranteed.
1 parent ee462f9 commit 1369749

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

util/misc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ define([
2929
// setTimeout executes its callback when delay has transpired, *or later*
3030
// requestIdleCallback executes its callback when delay has transpired, *or sooner*
3131
// Fixes https://github.com/SitePen/dgrid/issues/1351
32-
if (has('requestidlecallback')) {
33-
delayCallback = function (callback, delay) {
34-
return requestIdleCallback(callback, { timeout: delay });
35-
};
36-
cancelDelay = cancelIdleCallback;
37-
}
32+
// if (has('requestidlecallback')) {
33+
// delayCallback = function (callback, delay) {
34+
// return requestIdleCallback(callback, { timeout: delay });
35+
// };
36+
// cancelDelay = cancelIdleCallback;
37+
// }
3838

3939
function removeRule(index) {
4040
// Function called by the remove method on objects returned by addCssRule.

0 commit comments

Comments
 (0)