Function hasIdleCallback

  • Identifies if the runtime supports the requestIdleCallback API.

    Returns boolean

    True if the runtime supports requestIdleCallback otherwise false.

    Since

    0.4.4

    Example

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