---
title: "Discussion on \"Screen Wake Lock API In JavaScript\" | Hashnode"
description: "Discussion on \"Screen Wake Lock API In JavaScript\". Screen Wake Lock API In JavaScript"
url: "https://hashnode.com/posts/screen-wake-lock-api-in-javascript/6366c18d5a89e323416255e8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Screen Wake Lock API In JavaScript](https://saidmounaim.hashnode.dev/screen-wake-lock-api-in-javascript?utm_source=hashnode&utm_medium=feed)

Screen Wake Lock API In JavaScript

Nov 5, 2022 · 1 min read · saidmounaim.hashnode.dev  
Updated Nov 2, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#apis](https://hashnode.com/tag/apis)
-   [#js](https://hashnode.com/tag/js)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Said Mounaim](https://hashnode.com/@smounaim)

@smounaim · Casablanca, Morocco

  
[View profile](https://hashnode.com/@smounaim)

Full Stack JavaScript Developer

Hi There, i'm Said Mounaim A passionate Intermediate Full Stack Developer having an experience of building responsive Web applications with JavaScript / React.js / Next.js / Node.js and some other cool libraries and frameworks.

## Responses 1

Markdown supported · ⌘↵ to post

[Surya Teja Karra](https://hashnode.com/@shanmukhateja)

[Nov 6, 2022](https://hashnode.com/posts/screen-wake-lock-api-in-javascript/6366c18d5a89e323416255e8/comment/636795ba4eeb55c059f20313)

Please note, acc. to MDN, this is _experimental technology_ and is majorly supported by Chrome & its forks and Samsung browser.

We, as developers, have a responsibility to ensure consistent experiences for our users across all supported platforms (in this case browsers). I feel like usage of this tech would hurt it.

I highly recommend providing a fallback like [NoSleep.js](https://github.com/richtr/NoSleep.js) at least for iOS & Android.

**Reference:** [dev.to/mikeesto/the-screen-wake-lock-api-51hp](https://dev.to/mikeesto/the-screen-wake-lock-api-51hp)

**MDN:** [developer.mozilla.org/en-US/docs/Web/API/WakeLock](https://developer.mozilla.org/en-US/docs/Web/API/WakeLock#browser_compatibility)
