Firefox Tomorrow

web api instance method

Window: cancelIdleCallback() method

View on MDN ↗

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

Syntax

cancelIdleCallback(handle)

Parameters

Return value

None (undefined).

Examples

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.