4 ms·
Nice, but it is too slow to load comments, switch to next level etc. Why is that? Clicking on random links inside HN is much faster on my computer and it downl
by fiatjaf 10y ago
Nice, but it is too slow to load comments, switch to next level etc. Why is that?
Clicking on random links inside HN is much faster on my computer and it downloads the entire HTML each time.
- soneca 10y agoHonestly, I have no idea. I would love if someone could pitch in and give an explanation so I can learn from this (details and link to code at my other comment). My bet would be that it makes an API call for each change on the components. But probably the code could be improved aside from this.
- jaredsohn 10y agoI'd recommend loading Chrome's network tab as you browse the site to get some insight into this. For example, it looks like every time I click on a story it makes four requests; three are the same and the fourth is for 'undefined'.