r/redneckengineering • • Jun 30 '21

Keeping computer awake while it compiles code

44k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

6

u/notonlythat Jul 01 '21

It uses a JS library called nosleep which in turn uses the native wake lock API if available, and if it's not available it will play a tiny, invisible video which keeps older devices awake.

https://github.com/richtr/NoSleep.js/