web api interface
Scheduling
Limited availability
The Scheduling object provides methods and properties to control scheduling tasks within the current document.
[!WARNING] The
Schedulinginterface has been superseded by theSchedulerinterface, the features of which are better designed for addressing scheduling tasks. See Don’t useisInputPending()for more details.
Instance methods
isInputPending()Experimental- : 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 isInputPending() page for a full example.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
SchedulerinterfacePrioritized Task Scheduling API- Faster input events with Facebook’s first browser API contribution on engineering.fb.com (2019)
- Better JS scheduling with isInputPending() on developer.chrome.com (2020)
- Optimizing long tasks on web.dev (2022)