← Back to release summary

Idle Detection

Category
User input
Type
New or changed feature
Status
Enabled by default (Chrome 94)
Intent stage
Shipped

Summary

The Idle Detection API notifies developers when a user is idle, indicating such things as lack of interaction with the keyboard, mouse, screen, activation of a screensaver, locking of the screen, or moving to a different screen. A developer-defined threshold triggers the notification.

Motivation

Applications which facilitate collaboration require more global signals about whether the user is idle than are provided by existing mechanisms that only consider a user's interaction with the application's own tab.

Standards & signals

Docs: https://web.dev/idle-detection/ https://github.com/WICG/idle-detection/blob/main/mdn-drafts/QUICK-REFERENCE.md

Samples: https://web.dev/idle-detection/ https://github.com/WICG/idle-detection/blob/master/HOWTO.md https://reillyeon.github.io/scraps/idle.html

Explainers: https://github.com/WICG/idle-detection/blob/master/README.md

View on chromestatus.com