Live data from Hacker News

Why is collapsing a Hacker News comment so slow?

github.com

71–80 of 123 posts

Re: Why is collapsing a Hacker News comment so slow?

#71
post #34

Earlier quoted context omitted.

Edge is turning into Chromium soon, so that shouldn't be a problem for much longer.

Considering there are millions of people still using IE11, I'd say it will continue being a problem for a long time. 18% of my users are on IE11. Some industries (healthcare, for example) don't change if they don't perceive something to be broken.

In healthcare, the most common EMR systems (Epic, Cerner, Allscripts, etc) use IE11 in iframes as the platform environment for 3rd party applications embedded in their UIs. So convincing a few large vendors to upgrade would make a huge difference, but the hospitals themselves don't have the option of upgrading some of those browser environments. (My company makes apps that run in the EMR platforms)

Re: Why is collapsing a Hacker News comment so slow?

#72
post #39

I cannot visually notice any delay. It seems instantaneous in my browser.

It's really only an issue on mobile when you're collapsing larger threads. Try collapsing the first comment in this thread, for example: https://news.ycombinator.com/item?id=14656945 Not terrible, but there's a noticeable (maybe ~1 second on my phone) delay. My desktop is fast enough that it still feels instant.

It's instantaneous on my old iPhone se. Is it a budget android only issue?

Re: Why is collapsing a Hacker News comment so slow?

#73
post #67

If you don't mind me being negative here for a moment: 1. It's not your website, why spend so much time and effort on dissecting the issue? If one did this for every webpage they visited it'd be a more than a full time job. 2. Does it really look like Hacker News has had any serious development effort poured into it anytime recently? What incentive does YC have to put time and money into a forum that generates zero r…

As for your first point, my answer would be because it can be fun to do so.

Re: Why is collapsing a Hacker News comment so slow?

#74
post #67

If you don't mind me being negative here for a moment: 1. It's not your website, why spend so much time and effort on dissecting the issue? If one did this for every webpage they visited it'd be a more than a full time job. 2. Does it really look like Hacker News has had any serious development effort poured into it anytime recently? What incentive does YC have to put time and money into a forum that generates zero r…

"Generates zero revenue" is silly. Hacker News has certainly generated tens of millions of indirect profits for YC; probably much more. It's tremendous marketing value for the organization and its companies.

Re: Why is collapsing a Hacker News comment so slow?

#75

I have a budget moto and HN comments section is completely unusable on Chrome but perfectly smooth on Firefox. Haven't explored why. On Chrome any comment section with more than about 100 comments grinds to a halt. If I try to type in a comment there's a three second delay waiting for every letter to appear.

I didn't want to make the post even bigger and deal with other browsers but that's a good idea for a follow-up.

Re: Why is collapsing a Hacker News comment so slow?

#76
post #67

If you don't mind me being negative here for a moment: 1. It's not your website, why spend so much time and effort on dissecting the issue? If one did this for every webpage they visited it'd be a more than a full time job. 2. Does it really look like Hacker News has had any serious development effort poured into it anytime recently? What incentive does YC have to put time and money into a forum that generates zero r…

1. Too much free time I guess. I'm a frontend guy, I find frontend stuff interesting.

2. No. Probably none.

3. Are you saying that you are willing to sacrifice the user experience of the bottom 25% of the users of a website?

Re: Why is collapsing a Hacker News comment so slow?

#77
post #16

I would use the tag to solve this problem. Most people don't know this exists and I have no idea why. You would probably have to rewrite the html so it no longer uses tables but I don't really consider that to be a negative. I would also question why we are saving collapsed comments. I feel like this is something that doesn't need to be persisted forever. If you want this behavior why not use local storage instead?

I like the saving collapsed comments feature but past 7 days, I would not care if the server forgot about them because I usually never go back to posts 7 days or older

Re: Why is collapsing a Hacker News comment so slow?

#78
post #67

If you don't mind me being negative here for a moment: 1. It's not your website, why spend so much time and effort on dissecting the issue? If one did this for every webpage they visited it'd be a more than a full time job. 2. Does it really look like Hacker News has had any serious development effort poured into it anytime recently? What incentive does YC have to put time and money into a forum that generates zero r…

As for your first point, my answer would be because it can be fun to do so.

Fun, interesting, you learn stuff, what's not to like?

Re: Why is collapsing a Hacker News comment so slow?

#79
post #16

I would use the tag to solve this problem. Most people don't know this exists and I have no idea why. You would probably have to rewrite the html so it no longer uses tables but I don't really consider that to be a negative. I would also question why we are saving collapsed comments. I feel like this is something that doesn't need to be persisted forever. If you want this behavior why not use local storage instead?

> You would probably have to rewrite the html so it no longer uses tables

This reminds me: What happened to the markup rewrite that was announced almost 5 years ago together with the Firebase API? https://blog.ycombinator.com/hacker-news-api/

As far as I can see the markup never changed after all.

Re: Why is collapsing a Hacker News comment so slow?

#80

Or just use my Greasemonkey/Tampermonkey plugin which disables the Hackernews collapsible comments and introduces its own collapsible comments logic, which is much faster and has a variety of convenience features: http://mental-reverb.com/creations.php

The slow behaviour is mostly noticeable on mobile Chrome, but will have a look, thanks for sharing.
Post reply on HN