Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Scheduling object provides methods and properties to control scheduling tasks within the current document.
Warning: The Scheduling interface has been superseded by the Scheduler interface, the features of which are better designed for addressing scheduling tasks. See Don't use isInputPending() for more details.
isInputPending() 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.
See the Scheduling.isInputPending() page for a full example.
Scheduler interface