Screen wake lock
Newly available since 2025-03-31
The navigator.wakeLock.request("screen")
API prevents the device's screen from dimming or being turned off.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 84 Released on 2020-07-27
- Chrome Android 84 Released on 2020-07-27
- Edge 84 Released on 2020-07-16
- Firefox 126 Released on 2024-05-14
- Firefox for Android 126 Released on 2024-05-14
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 18.4 Released on 2025-03-31
Usage (according to Chrome Platform Status)
~1.379% of page loads. More data at chromestatus.
Specifications
- Screen Wake Lock API, from Devices and Sensors Working Group (W3C).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature