The Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when an application needs to keep running.

MDN documentation

Found through [nosleep.page](https://nosleep.page/]

🤓 Continue reading