Function hasIdleCallback

  • Identifies if the runtime supports the requestIdleCallback API.

    Returns boolean

    True if the runtime supports requestIdleCallback otherwise false.

    0.4.4

    let nativeIdleTimeouts = hasIdleCallback();
    // true === idle timeouts are supported by the runtime otherwise false and the {@linke scheduleIdleCallback}
    will use `setTimeout` instead.