NoSleepJs is a lightweight JavaScript library that prevents devices from going to sleep during critical activities. It uses the Screen Wake Lock API or a fallback video playback method to keep the screen active, ensuring uninterrupted user experiences across modern and legacy devices.
javascript-library video-playback mobile-web wake-lock browser-compatibility no-sleep prevent-sleep screen-activity wake-lock-api device-sleep-prevention
-
Updated
Feb 2, 2025 - JavaScript