Live data from Hacker News

Show HN: Fall asleep by watching JavaScript load

github.com

21–30 of 36 posts

Re: Show HN: Fall asleep by watching JavaScript load

#21
post #6

Not criticism, just explaining a problem I noticed and would make a fun exercise in CSS, or JS: When a letter appears at the end of the line, the reflow (to make sure the whole text is centered) is not smooth, of course it isn't because the text is now n+1 characters wide and the rendering engine has probably been instructed to center it without any fancy delays. I wonder how to achieve a smooth "growth" of line. I s…

If it was written by a human, none of this would be javascript except the next button click handler. I don't know what is going on that it mentions a service worker at the end. That's wild.

Anyway the CSS is missing a transition for the width. That's why it's jerky.

Re: Show HN: Fall asleep by watching JavaScript load

#25
As a proud European citizen, I visited your site… and… wait… WHERE IS MY SACRED COOKIE BANNER?? This is outrageous. Are you seriously trying to serve me content without first psychologically torturing me with 47 sliders and a philosophy essay about legitimate interest?? I checked the dev tools… zero cookies?? …excuse me?? Are you even trying to be GDPR compliant or are you just openly mocking the entire European project??

Your project is awesome by the way

Re: Show HN: Fall asleep by watching JavaScript load

#28

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 primes vigilance and temporal monitoring instead of relaxation, making it conceptually misaligned with sleep onset mechanisms.

Just my 2 cents.

Re: Show HN: Fall asleep by watching JavaScript load

#29
post #6

Not criticism, just explaining a problem I noticed and would make a fun exercise in CSS, or JS: When a letter appears at the end of the line, the reflow (to make sure the whole text is centered) is not smooth, of course it isn't because the text is now n+1 characters wide and the rendering engine has probably been instructed to center it without any fancy delays. I wonder how to achieve a smooth "growth" of line. I s…

If it was written by a human, none of this would be javascript except the next button click handler. I don't know what is going on that it mentions a service worker at the end. That's wild. Anyway the CSS is missing a transition for the width. That's why it's jerky.

Yeah, you could make this completely JS-free.

Re: Show HN: Fall asleep by watching JavaScript load

#30
post #26

This would have the opposite effect on me. I can get unreasonably mad about slow / sluggish internet connections. This would keep me wake for a long time.

Same here. I can already feel the adrenaline increasing ... :-P

Exactly. I elaborated on this here: https://news.ycombinator.com/item?id=46599477
Post reply on HN