3 ms·
As Firefox (& I think Safari too) does not support the ScreenWakeLock API are you using NoSleep.js? https://github.com/richtr/NoSleep.js https://github.com/rich
by karussell 4y ago
As Firefox (& I think Safari too) does not support the ScreenWakeLock API are you using NoSleep.js? https://github.com/richtr/NoSleep.js https://github.com/richtr/NoSleep.js
This library implements a hack and plays a very tiny video in a loop too. This should even work on mobile devices and (according to my personal&tiny tests) is not that inefficient as it sounds :)
- pdxandi 4y agoAre we seeing different sites when you click on the link? Because that is literally all the landing page says. This tiny site uses the Screen Wake Lock API to prevent your device from sleeping. Where this API isn't supported, an empty silent video is played to emulate this behaviour (using NoSleep.js).
- karussell 4y agoI obviously missed the NoSleep.js at the end ... but then I wonder: what is then so special about this website?
- _trampeltier 4y agoThe idea. A lot of company computers have autolock on, just an example.
- spiderice 4y agoIt prevents your computer from sleeping with just a webpage. Why does it need to be more special than that?
- karussell 4y agoI meant that nosleep.page is basically the example page from NoSleep.js hosted on the internet...
- rzzzt 4y agoI think karrussell is talking about the live demo linked from NoSleep.js' project page: https://richtr.github.io/NoSleep.js/example/ https://richtr.github.io/NoSleep.js/example/
- deleted 4y ago[deleted]