Back to Content

Scheduling

files/en-us/web/api/scheduling/index.md

latest1.4 KB
Original Source

{{SeeCompatTable}}{{APIRef("Prioritized Task Scheduling API")}}

The Scheduling object provides methods and properties to control scheduling tasks within the current document.

[!WARNING] The Scheduling interface has been superseded by the {{domxref("Scheduler")}} interface, the features of which are better designed for addressing scheduling tasks. See Don't use isInputPending() for more details.

Instance methods

  • {{domxref("Scheduling.isInputPending", "isInputPending()")}} {{Experimental_Inline}}
    • : Returns a boolean that indicates whether there are pending input events in the event queue, meaning that the user is attempting to interact with the page.

Example

See the {{domxref("Scheduling.isInputPending()")}} page for a full example.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also