Browser Hub Demo

Screen Wake Lock API

This matters for recipes, workouts, navigation, barcode scanning, presentations, and any hands-busy task where the screen timing out breaks the flow.

Device control

What this unlocks

Keep the display awake during a task without forcing awkward tap-to-prevent-sleep hacks. Widely available in modern Chromium browsers and some mobile environments. Unsupported browsers simply continue using normal sleep behavior.

Live demoEnhancement only

Screen Wake Lock API

Keep the display awake during a task without forcing awkward tap-to-prevent-sleep hacks.

Use this sparingly for flows where the device sleeping would interrupt a real task, like scanning, workouts, directions, or presentations.

Display state

Auto

The system can dim or sleep normally.

The screen can follow its normal sleep settings until you request a wake lock.

Use cases

Real product scenarios

These are the kinds of workflows where the API earns its complexity.

Guided step-by-step flows.

Screen Wake Lock API helps when the browser needs to move beyond plain navigation and forms.

Kiosk and dashboard screens.

Screen Wake Lock API helps when the browser needs to move beyond plain navigation and forms.

Hands-free reference views for field work or workshops.

Screen Wake Lock API helps when the browser needs to move beyond plain navigation and forms.

Shipping notes

Progressive enhancement rules

Browser capability work is product design work. Support levels, permissions, secure context requirements, and fallback behavior matter as much as the demo itself.

Only enable it when the user clearly asks for it.

Widely available in modern Chromium browsers and some mobile environments. Unsupported browsers simply continue using normal sleep behavior.

Be prepared for the lock to release on tab changes or power events.

Widely available in modern Chromium browsers and some mobile environments. Unsupported browsers simply continue using normal sleep behavior.

More demos

Related browser capabilities

Continue through the hub to see how other modern APIs can reshape UX, device integration, and workflow design.

Context awareness

Idle Detection API

Detect whether the user and screen are active to adapt sync, notifications, and session behavior.

Open Idle Detection API