Identifies if the runtime supports the requestIdleCallback API.
Returns boolean
True if the runtime supports requestIdleCallback otherwise false.
Since
0.4.4
Example
letnativeIdleTimeouts = hasIdleCallback(); // true === idle timeouts are supported by the runtime otherwise false and the {@linke scheduleIdleCallback} willuse`setTimeout`instead.
Identifies if the runtime supports the
requestIdleCallback
API.