Keep Your Screen Awake During a Timer
Supported browsers expose a Screen Wake Lock API that can ask the device to keep the display awake while a page is active.
It is an optional capability
Wake Lock support varies by browser and device. A timer should continue to function even when the API is unavailable or a request is denied.
The lock can be released
Browsers may release the lock when a tab becomes hidden. A well behaved app can request it again when the page becomes visible if the user still wants the screen awake.
Use it only when useful
Wake Lock is helpful for desk clocks, workouts, classrooms and presentations where a sleeping display would be disruptive.
Ready to try it?
Open the matching browser tool and switch into fullscreen when you want the display to take over.