All specs
W3C Screen Wake LockW3CShould KnowProduct

Screen Wake Lock API

Device Access & Sensors·World Wide Web Consortium
WHY YOU NEED THIS

Required for recipe apps, presentation slides, navigation/maps, music players, and any app where the screen must stay on. The automatic release on visibility change means you must re-acquire on visibilitychange.

What It Defines

Defines navigator.wakeLock.request('screen') for preventing the device screen from dimming or locking. Returns a WakeLockSentinel with a release() method and release event. Automatically released when the page becomes hidden.

Canonical (Normative)

Convenient (Practical)

wakelockscreensleepdisplaydevice-accessbrowser
Standards Body
World Wide Web Consortium

Publishes web platform specs including CSS, accessibility, security policies, Service Workers, Web App Manifest, and many browser APIs. Also maintains some versioned HTML/DOM specs.

Visit

Related Specs

W3C Page VisibilityW3CShould Know

Page Visibility

Essential for pausing animations/video, reducing network requests, and saving state when the user navigates away. Analytics and session tracking depend on visibility events to measure actual engagement time.

ProductDevice Access & Sensors
Details
W3C PermissionsW3CMust Know

Permissions

The gating mechanism for every sensitive browser API. Check permission state before requesting access to avoid unexpected prompt dialogs. The change event lets you react when users revoke permissions in browser settings.

ProductDevice Access & Sensors
Details