Live data from Hacker News

Show HN: Fall asleep by watching JavaScript load

github.com

31–36 of 36 posts

Re: Show HN: Fall asleep by watching JavaScript load

#31
post #17

What's the Service Worker for? It doesn't appear to do anything.

The skeleton provided by ChatGPT to get the page to load fullscreen as a PWA included it, so I just kept it. “Maybe in future”... But it’s unnecessary, I should have removed it.

[dead]

Re: Show HN: Fall asleep by watching JavaScript load

#32

I can’t think of a more terrible way to fall asleep.

I know right. It is not only counterintuitive, but psychologically incoherent as to how sleep initiation actually works. A loading screen is psychologically linked to anticipatory arousal and goal-oriented expectancy, which activates the sympathetic nervous system. That is the opposite of what sleep requires, which depends on parasympathetic dominance and cognitive disengagement. Using a "loader" for falling asleep p…

That's interesting. How would you explain that for someone works then? At least on me, the loader does not trigger vigilance and temporal monitoring (I think). Instead, it "allows" my brain to focus on something else, which gets boring very soon, but that at the same is engaging enough to keep doing it. This kind of interactive yet very slow dynamic helps me stop trains of thoughts and relax.

It does not replace healthy bedtime routines of course, and it never meant to be a serious sleeping aid, but more of an experiment - and partially a joke. Maybe the premise should have been to help stop a spinning mind rather than to fall asleep...

Re: Show HN: Fall asleep by watching JavaScript load

#33

This is unreasonably effective, and I'm not entirely sure why Thank you so much, an instant 'Add to Home Screen' from me

Happy to hear! It doesn't replace healthy bedtime routines of course, and it's halfway between an experiment and a joke, but still... :)

Re: Show HN: Fall asleep by watching JavaScript load

#34
post #33

This is unreasonably effective, and I'm not entirely sure why Thank you so much, an instant 'Add to Home Screen' from me

Happy to hear! It doesn't replace healthy bedtime routines of course, and it's halfway between an experiment and a joke, but still... :)

No, not at all, but sometimes we need all the help we can get

Re: Show HN: Fall asleep by watching JavaScript load

#35
post #22

I presume there's no actual loading happening, it's just a timer. Real loading spinners aren't fun, but fake ones are next level bad. Not sure why anyone would deliberately put themselves through this experience.

To fall asleep, presumably

in front of a screen? does the user tuck themselves in bed with lights off and suspend the device above their face?
Post reply on HN