A browser wake lock can help prevent a supported display from turning off while a download is underway. It cannot inspect your files or know when an external download has finished. Choose an estimated duration, and configure your operating system’s sleep settings if the computer itself must stay awake.
Use the timer as a check-in
Starting a session can keep a supported display visible while you watch a download. Pick an estimate that makes sense, then check progress in the downloader itself.
The page cannot see your download
AwakeScreen cannot inspect files or know when a transfer finishes. A screen wake lock also does not guarantee that the whole PC stays awake.
For the underlying browser behavior, see the W3C Screen Wake Lock specification.