MDN self-hosted library · e01.org

Window: cancelIdleCallback() method

The window.cancelIdleCallback() method cancels a callback previously scheduled with window.requestIdleCallback().

no runnable cells web-api-instance-method upstream source

The window.cancelIdleCallback() method cancels a callback previously scheduled with window.requestIdleCallback().

Syntax

cancelIdleCallback(handle)

Parameters

  • handle
  • : The ID value returned by window.requestIdleCallback() when the callback was established.

Return value

None (undefined).

Examples

See our complete example in the article Cooperative Scheduling of Background Tasks API.

Specifications

Browser compatibility