Screen Wake Lock
Keeps the screen on while the page is visible.
In one line
Can keep your screen on while the page is showing, but not in the background
Keeps the screen on while the page is visible.
Stops the display from dimming or locking, which can drain battery and expose the screen. Browsers drop it when the page is hidden or battery is low, so it cannot hold the screen on in the background.
What it can and can't do
What the user does: You open a recipe, video or presentation and the page asks to stay awake
It can
- Stop the screen from dimming or locking while the page is visible
- Keep a recipe or slide show on screen
- Work in all major browsers with no pop up in most
It cannot
- Keep the screen on once you switch tabs or minimize the page
- Hold the screen on when battery is low
- Keep the computer awake when the screen is off
- Override browser rules that release it when the page is hidden
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 | None |
| 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(); 'release' event |
| Permission name | screen-wake-lock |
| Permissions policy | screen-wake-lock |
| Browser compat keys | api.WakeLockapi.WakeLockSentinel |
| How access is granted | none |
| What the user sees | No prompt in most browsers; Chrome keeps a policy gate; the permission state granted, denied or prompt follows policy and battery. |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| How long it lasts | Held only while the document is visible |
| How to take it back | Page hidden, low battery or power saver, sentinel.release() |
| Inside an iframe | Needs allow="screen-wake-lock" in iframes |
Typical flow
- Call navigator.wakeLock.request('screen')
- Browser grants a WakeLockSentinel
- Lock releases on hide, low battery or release()
- Re-request on visibilitychange
Data you get
What comes back: WakeLockSentinel
Shape: object
How often: while active
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
type | enum | none | screen only | fixed |
released | boolean | none | true or false | event driven |
Technical limits
- Only 'screen' type exists
- Needs a visible active document
- Released on low battery
The story
What it is
A page can keep your screen from dimming or locking while you use it.
For you
You do not see a prompt. While you watch a video or follow a recipe, your screen stays on. It lets go when you leave the page. It can use more battery.
For makers
Makers use it for reading, video, maps, recipes and live scoreboards, where a dimmed screen breaks the experience. It only works while the tab is visible. The browser can release it when battery is low.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | A video site keeps the screen on while you watch, so the screen does not dim mid movie. | YouTube, Netflix |
| games | A browser game with long thoughtful turns, or a cloud game stream, keeps the display awake while you play with a gamepad. | Xbox Cloud Gaming, GeForce NOW |
| shopping | A recipe site keeps the screen on while you cook with messy hands. | None named |
| maps | A web map app keeps the display on while you navigate a walk. | Google Maps |
| live | A live scoreboard or stream stays visible during a match. | None named |
| productivity | A slide viewer keeps the screen on while you present. | Google Slides |
| fitness | A workout timer site keeps the screen on while you exercise. | None named |
| payments | A web ticket page keeps the QR code bright for a scanner at the gate. | None named |
Risks
- Drains battery
- Screen burn on some displays
What the platform says
- web.dev: Screen Wake Lock API. Stops the screen from turning off while you read, cook, present or watch, with no user setting changes.
Good uses and abuse
Legitimate uses
- Recipe pages
- Video and presentation apps
Known abuse
- Battery drain, always-on display
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 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 Screen Wake Lock
- 2024-05, Firefox 126: Firefox ships Screen Wake Lock
- 2025-03, Chrome 134: Baseline newly available across engines
Related capabilities
Related
- System Wake Lock. Can't keep your device awake with the screen off; no browser ever shipped this
- Idle Detection. Can tell when you step away or lock your screen, if you allow it
Sources
How well checked: Based on official documentation.