Hacker News new | ask | show | jobs
by fadsasda432 4074 days ago
This is not a critique to the author, but for me, who just did classic webdev (server side templated html), this was very surprising.

I am not that into webdev, but shouldn't a page like HN be fast TODAY, as it has very basic functionality (CRUD)? I mean if this is slow, how can I expect acceptable performance from involved applications?

1 comments

I think it's the firebase api that's slowing everything down.
The problem is the site is not sending any (useful) HTML during the first HTTP request. Therefore the browser has to wait for the JS to render the page before it can even think about displaying anything.

The fact the site then loads content from firebase is obviously a problem, but it's not so much firebase's problem as it is of the codebase itself - in an ideal world it should be rendering the initial HTML to send to the client on the server.

I have seen React based websites with server side rendering work with firebase with much better performance.