I can't find any documentation on this one way or another. The function window.requestIdleCallback does exist in a Chrome extension's background page. But when I run
window.requestIdleCallback(() => {
console.log("XXX idle");
});
The callback appears to never run. Is this intended behavior, or is there something that could be causing the callback to never run here?
A bit more information: the manifest does have {"persistent": true} set. And the window.requestIdleCallback function does exist, it just doesn't appear to do anything.
requestIdleCallbackis a function in Chrome since I can't find it in the Chrome API documentation, instead I found this one whom uses this function. Have you tried to check this? – MαπμQμαπkγVπ.0 Apr 2 '19 at 9:39