3 ms·
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.ycombinato
by Ajedi32 7y ago
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 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.