Screen Wake Lock
Keeps the screen from dimming or sleeping while the tab is visible; no prompt.
In one line
Can keep your screen awake while the tab is open and showing
Keeps the screen from dimming or sleeping while the tab is visible; no prompt.
A site can stop the screen going dark, which is useful for recipes, maps and video, but drains battery. The browser drops the lock the moment the tab is hidden, so it cannot run in the background.
What it can and can't do
What the user does: You start a recipe, a video, map directions or a slideshow.
It can
- Stop the screen dimming or going to sleep
- Hold it for as long as the tab is showing
- Release it when it finishes
It cannot
- Keep the screen on once you switch tabs or minimize, since it is released
- Stop you locking the phone with the button
- Hold it when the battery is very low, since the browser may refuse
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 84 | 2020-07-27 | None |
| Edge | Supported | 84 | 2020-07-16 | None |
| Firefox | Supported | 126 | 2024-05-14 | None |
| Safari | Supported | 16.4 | 2023-03-27 | None |
| Safari on iPhone | Supported | 18.4 | 2025-03-31 | All iOS browsers use WebKit |
| Chrome on Android | Supported | 84 | 2020-07-27 | None |
| Samsung Internet | Supported | 14.0 | 2021-04-17 | None |
How a site asks for it
| API | navigator.wakeLock.request('screen'); sentinel.release() |
| Permissions policy | screen-wake-lock |
| Browser compat keys | api.Navigator.wakeLockapi.WakeLockSentinel |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| Activation | none |
| How long it lasts | Released when the tab is hidden, the sentinel is released, or the page closes; must be requested again after a visibilitychange |
| How to take it back | Nothing to revoke (no permission is stored) |
| Inside an iframe | Cross-origin iframes need allow="screen-wake-lock" (Permissions Policy screen-wake-lock, default self) |
Typical flow
- Page calls navigator.wakeLock.request('screen')
- Browser grants a sentinel with no prompt if the tab is visible
- Screen stays awake until released or the tab is hidden
- Page must re-request on return
Data you get
Shape: none
No individual data fields. The signal is the access itself.
Technical limits
- Secure context only
- Only the screen type exists (a system lock type was dropped from the spec)
- Request fails with NotAllowedError when the document is not visible, Permissions Policy forbids it, or the device is in battery saver or low battery (browser choice)
- The lock is released automatically on visibilitychange to hidden; it never keeps the screen on in the background
- iOS Home Screen web apps did not honour it until iOS 18.4; Safari tabs since 16.4
The story
What it is
Keeps your screen from dimming or sleeping while a page is visible, with no prompt.
For you
Your screen stays bright while you cook from a recipe, watch a video or follow a map. You get no popup. The lock ends when you switch tabs.
For makers
It keeps people from losing their place when the screen dims. It also keeps them looking at the app longer, which lifts watch time and ad time. It does use more battery.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | A browser game or cloud game stream keeps the screen awake between taps, so a long match is not interrupted. | Xbox Cloud Gaming, GeForce NOW |
| video | A video site keeps your screen on while a show plays so it does not dim in the middle. | YouTube |
| travel | A web map keeps the screen lit during a walk or drive so directions stay visible. | Google Maps |
| productivity | A recipe or slide deck page keeps the screen on while you cook or present. | Google Slides |
| fitness | A web workout timer stays on screen between sets. | None named |
| live | A live auction or event page keeps the screen awake so you do not miss the last minute. | None named |
| smart-home | A web dashboard on a wall tablet stays on as an always on display. | None named |
Risks
- Drains battery
- Keeps you staring
What the platform says
- Chrome: Screen Wake Lock API. Chrome pitches it as a way for web apps to keep the screen on during tasks like recipes, slides and video.
- MDN: Screen Wake Lock API. Documents how a page can ask the device to keep the screen from turning off.
Good uses and abuse
Legitimate uses
- Recipe and reading apps
- Presentations and slide shows
- Navigation, video call and boarding pass pages
Known abuse
- Battery drain on purpose
- Keeping a mining or ad page awake while visible
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2020-07, Chrome 84: Screen Wake Lock ships
- 2023-03, Safari 16.4: Safari ships Wake Lock in the browser
- 2024-05, Firefox 126: Firefox ships Wake Lock
- 2025-03, Safari 18.4: Works in iOS Home Screen web apps
Related capabilities
Related
- Page Lifecycle and back/forward cache. Can tell when your tab sleeps, is discarded or returns from the Back button
- Background tab timer throttling. Can't keep its timers running fast once you switch to another tab
Sources
How well checked: Based on official documentation.