Scheduling object provides methods and properties to control scheduling tasks within the current document.
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.
Scheduling.isInputPending() page for a full example.
|Early detection of input events |
BCD tables only load in the browser
- 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)