Ask HN: Does Clicking on 'Dead' Comments Freeze your Browser Too?
4 points
16 days ago
| 3 comments
| HN
I've been experiencing an issue where clicking on 'dead' comments on HackerNews causes my browser to freeze for about 5-10 seconds, and my CPU fan turns noticeably louder during this time. This happens consistently and I've tested it across multiple browsers with the same result.

For example (assuming it's not a problem peculiar to my machine) you should be able to see this behavior for yourself by going to this link:

https://news.ycombinator.com/item?id=40222213

and trying to expand the comment by "Brian_K_White" by clicking the ”[17 more]” link.

Is anyone else experiencing this issue, or is it just on my end?

dang
16 days ago
[-]
I pushed a fix for a comment-collapsing bug earlier today, so I wonder if I broke something.

My fix happened to made some iterative code recursive. Recursive code plus CPU fan rather suggests a stack overflow, doesn't it... I'll look into it.

Edit: I've reverted the change so you can happily expand your [17 more]. Will see if I can fix better.

Edit 2: should be fixed better now.

reply
aragonite
15 days ago
[-]
Many thanks dang — everything is working smoothly now!
reply
carlosjobim
16 days ago
[-]
I have the same problem for expanding any comment.
reply
UmYeahNo
16 days ago
[-]
It expanded immediately for me. Chrome, Mac.
reply
aragonite
16 days ago
[-]
Many thanks!

This is so strange. The freezing happens both on my desktop (Chrome, Firefox, Tor) and my phone (Chrome Android).

Might be something peculiar with my setup...

Edit: I've now tested it on Windows, Android and iPhone and seen the same freezing behavior, both from residential and CGNAT IPs.

reply