4 ms·
I cannot visually notice any delay. It seems instantaneous in my browser.
by enriquto 7y ago
I cannot visually notice any delay. It seems instantaneous in my browser.
- bhauer 7y agoSame. I am really picky about performance, and I've never seen anything but instantaneous response from collapsing comments. I just tried it right now on a few example threads from the home page and confirmed that it's instantaneous. I would estimate less than 50ms. I can rapidly click a + and - and collapse/expand a comment tree more or less as fast as I can click (the limiting factor being that my browser wants to select the + button itself as text). For whatever it's worth, I use Firefox on Windows. But I just fired up Chrome and gave it a test, and I see the same thing there. But I don't do a whole lot of HN comment browsing on my mobile device, so I suppose that's the difference.
- mfatica 7y agoI've only noticed on mobile
- Ajedi32 7y agoIt'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 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.
- krapp 7y agoOne answer to this is to paginate long threads so there's a definite upper limit to the length and depth of the thread on any page.
- enriquto 7y agothis is a bit ridiculous... folding a few thousand lines of plain text should be fast no matter what. If it isn't, then there's something quite wrong.
- krapp 7y agoI don't want to knock dang or whoever wrote it but when I look at HN's JS it looks to me like it was written more to resemble Lisp idioms and to look elegant than to be efficient. If so, that may just be someone working in their comfort zone, which is fine - it works, and if it were much more complex than it is, HN being HN would complain. It's not bad, it just doesn't scale. Also, I suspect but don't know that the table based layout makes showing and hiding elements a lot slower than it would be with, say, divs or an unordered list. If this is the case, it would probably only be exacerbated on mobile.
- lm28469 7y agoIt's instantaneous on my old iPhone se. Is it a budget android only issue?
- tylerhou 7y agoA way to reproduce is to use your browser's profiling tools to throttle your CPU.
- sandis 7y agoNot great, not terrible.