Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thus, you are confirming there is a hugh level of complexity.

I want to add something else on top of what's in that gist: ssr is slow, rendering an application twice (on server and client) is just slow.

We only do that for cache and seo, every other page suffers.



I'm not sure what about two bundles causes a huge level of complexity. Granted, I use Next.js, it does all of this out of the box.

SSR is fast, it's provably faster than client side rendering for first load. You can optionally do client side hydration, so the time to meaningful content is fast from SSR, and subsequent page loads are done SPA style (if you want).

It's never a fair comparison, but Stackoverflow is entirely SSR (not Node.js) and it's very fast. Also, all forum software, which is SSR, despite being 20-30 years old, is usually faster than a SPA. The Jamstack is a recipe for loading spinners, not speed.


> Also, all forum software, which is SSR, despite being 20-30 years old, is usually faster than a SPA.

Only because crap tons of hardware got thrown at the problem.

I remember when forums were multi-seconds to load each page. It sucked.

People complain about reddit a lot, but even on mobile, the reddit website is fast. It may be janky at times, but navigating between comments on stories is under a second, loading more comments is, well, not fast, but quick.

Hacker News is notably one of the few non-crap forum sites out there. phpbb used to be everywhere, and it sucked everywhere. Up until 2012 or so, the old dial up BBSes from the mid 90s had a better user experience than the latest and greatest internet forums. (of course BBSs only had 1 client at a time, a much easier problem to solve!)

And yes, phpbb works now, because now a cheap host has an SSDs with gigs of RAM. To do the equivalent of a what a 486 running DOS did back in 1993.


Personally, I'd much rather wait for a 1-2 second page load than have a page load quickly and peg one of my CPUs because of some poorly written Javascript.


It's pretty hard to compare some random free PHPBB running on a underspec'd host to companies with billions in revenue to support their platform. Honestly, reddit and HN are so simplistic, there's not much added by JavaScript doing any rendering.

Reddit in particular is horrific. Their API is slow, and their JS bogs down on anything that isn't a super-fast desktop. Server pages would be able to handle most of what they do, faster and better, except for crap like live updates or typing/posting indicators that don't add much value.


> Their API is slow, and their JS bogs down on anything that isn't a super-fast desktop.

I'm on a $1000 4 year old laptop. Initial render on home page is under 3 seconds. Comments load in under 2 seconds,

Hacker News is faster, but Reddit is the next best thing.

This is all w/o ad block, new reddit UI enabled.

With uBlock Origin enabled, it is marginally faster.

> It's pretty hard to compare some random free PHPBB running on a underspec'd host to companies with billions in revenue to support their platform.

My comparison was random free PHPBB to random free BBS hosted on dial up in the 90s. Up until the late 201xs, random free 90s BBS performed better.


I'm sorry but 2 seconds to load a page with primarily text is not something you should brag about. This kind of stuff should take miliseconds to load, with the bulk of it spent waiting for the server's reply. In fact, the "old" Reddit (which is entirely SSR with minimal JS on the front-end) would load in under less than a second.


> I'm sorry but 2 seconds to load a page with primarily text is not something you should brag about.

Reddit's homepage is primarily video and photos.

The homepage contents are obscenely dynamic, I have no doubt they use tons of caches for everything, but the homepage is not simple at all.

Since I am logged in, there is a profile lookup, as well as looking up to see if I have an notifications.

There is the fetching of stories + metadata from my personal feed, which involves custom prioritization. I doubt any of that can be trivially cached.

Reddit is not some simple static text website. Hacker news doesn't render a different page for every visitor, Reddit does. Heck HN saves on CPU by not even telling me if there are replies to my posts!


> People complain about reddit a lot, but even on mobile, the reddit website is fast. It may be janky at times, but navigating between comments on stories is under a second, loading more comments is, well, not fast, but quick.

Reddit is an example that clearly shows that the user experience of "old-style" code where interactions are primarily with the server beats out SPA.

old.reddit.com is clearly superior in pretty much every way save some pretty old CSS styling (which could easily be fixed without changing the underlying technology). The rewrite still feels buggy and slow, and the added interactivity doesn't really make a meaningful difference.


old.reddit.com is great when I am travelling and limited to 128kbit/s of data.

The new site solves the problem of not losing my place in the feed when leaving a story, which is a huge pain point of the original reddit design.


It sucked even more when forums used flat files (essentially runtime static site generation) rather than databases. We'd periodically have to prune the post history to restore site performance.


> I remember when forums were multi-seconds to load each page. It sucked.

You mean when you had the same internet speed 10 years ago, right...?


I could pull 2 megabytes per second down back in 2000.

I was at 5x that by 2010.

My internet speed didn't really improve from 2010 to 2021, (Comcastic!) then I got fiber. File downloads are faster (800mbit gets binary fast), web pages are about the same.

Servers have gotten faster, but ad tech had made crap slower.

SSR won't help solve ad tech garbage making pages janky.


You could exclude adtech from the equation using an ad blocker and theoretically make everything lightning-fast, but in reality adtech is not the only problem and non-ad JS also grew to consume all the available resources.


10 years ago in suburban Phila, I had 50/50.

Today in rural NM, I have 40/5. Many of my neighbors have 25/2.

Time is not the only thing that controls internet bandwidth.


> People complain about reddit a lot, but even on mobile, the reddit website is fast.

only on mobile is Reddit fast.


Pardon me while I load up reddit on my 4 year old $1000 Costco Special laptop.

Yup, that was fast.

OK let me disable ad block.

Under 3 seconds to first render.

Comments appear in under 2 seconds.

Reddit performs very well. The new UI is legit faster. There is a bit of stupid here and there with it, and if you aren't logged in the experience is horrible, but speed is, IMHO, not one of the site's problems.


16 core Ryzen Threadripper 2950X on a 40Mbps link with ublock origin: 4-5 seconds for first render.


What OS?

Fresh Firefox instance, Windows 10, hitting homepage without logging in. 2 seconds, if that, page is fully loaded.

Chrome, I am logged in, but still using the old UI somehow. Same 2 second page load.

Core I7-8550. 16GB of RAM.

Running on a laptop whose battery is pretty much useless and whose fans are rather upset at the moment!


I sometimes wonder if my HN refreshes go through because the site reloads instantly.


Yep. HN is fast.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: