Live data from Hacker News

A 14kb page can load much faster than a 15kb page (2022)

endtimes.dev

31–40 of 324 posts

Re: A 14kb page can load much faster than a 15kb page (2022)

#31
post #7

The overlap of people that don’t know what TCP Slow Start is and those that should care about their website loading a few milliseconds faster is incredibly small. A startup should focus on, well, starting up, not performance; a corporation large enough to optimise speed on that level will have a team of experienced SREs that know over which detail to obsess.

Right. That’s why all the software from, say, Microsoft works flawlessly and at peak efficiency.

Re: A 14kb page can load much faster than a 15kb page (2022)

#32
post #3

And now try to load the same website over HTTPS

From TFA: > Also HTTPS requires two additional round trips before it can do the first one — which gets us up to 1836ms!

This hasn’t been the case since TLS1.3 (over 5 years ago) which reduced it to 1-RTT - or 0-RTT when keys are known (cached or preshared). Same with QUIC.

Re: A 14kb page can load much faster than a 15kb page (2022)

#33
post #10

Aside from latency, reducing ressources consumption to the minimum required should always be a concern if we intend to have a sustainable future. The environmental impact of our network is not negligible. Given the snarky comments here, we clearly have a long way to go. EDIT: some reply missed my point, I am not claiming this particular optimization is the holy grail, only that I'd have liked for added benefit of red…

The vast majority of internet bandwidth is people streaming video. Shaving a few megs from a webpage load would be the tiniest drop in the bucket.

I am all for efficiency, but optimizing everywhere is a recipe for using up the resources to actually optimize where it matters.

Re: A 14kb page can load much faster than a 15kb page (2022)

#34
post #7

The overlap of people that don’t know what TCP Slow Start is and those that should care about their website loading a few milliseconds faster is incredibly small. A startup should focus on, well, starting up, not performance; a corporation large enough to optimise speed on that level will have a team of experienced SREs that know over which detail to obsess.

Right. That’s why all the software from, say, Microsoft works flawlessly and at peak efficiency.

That’s not what I said. Only that the responsible engineers know which tradeoffs they make, and are competent enough to do so.

Re: A 14kb page can load much faster than a 15kb page (2022)

#35
post #18
post #10

Aside from latency, reducing ressources consumption to the minimum required should always be a concern if we intend to have a sustainable future. The environmental impact of our network is not negligible. Given the snarky comments here, we clearly have a long way to go. EDIT: some reply missed my point, I am not claiming this particular optimization is the holy grail, only that I'd have liked for added benefit of red…

It's not low-hanging fruit, though. While you try to optimise to save a couple of mWh in power use, a single search engine query uses 100x more and an LLM chat is another 100x of that. In other words: there's bigger fish to fry. Plus caching, lazy loading etc. mitigates most of this anyway.

Sure there are more resource-heavy places but I think the problem is general approach. Neglecting of performance and overall approach to resources brought us to these resource-heavy tools. It seems just dismissive when people pointing to places where there could be made more cuts and call it a day.

If we want to really fix places with bigger impact we need to change this approach in a first place.

Re: A 14kb page can load much faster than a 15kb page (2022)

#36
Damn... I'm at 17.2KB for my home page! (not including dependencies)

FWIW I optimised the heck out of my personal homepage and got 100/100 for all Lighthouse scores. Which I had not previously thought possible LOL

Built in Rails too!

It's absolutely worth optimising your site though. It just is such a pleasing experience when a page loads without any perceptible lag!

Re: A 14kb page can load much faster than a 15kb page (2022)

#37
post #4

I’d care about this if I was selling in India or Africa. If I’m selling to cash cows in America or Europe it’s not an issue at all. As long as you have >10mbps download across 90% of users I think it’s better to think about making money. Besides if you don’t know that lazy loading exists in 2025 fire yourself lol.

I wouldn't be surprised if many '3rd world' countries have better average internet speeds than some developed countries by leapfrogging older 'good enough' tech that's still dominating in the developed countries, e.g. I've been on a 16 MBit connection in Germany for a long time simply because it was mostly good enough for my internet consumption. One day my internet provider 'forcefully' upgraded me to 50 MBit because they didn't support 16 MBit anymore ;)

Re: A 14kb page can load much faster than a 15kb page (2022)

#38
post #10

Aside from latency, reducing ressources consumption to the minimum required should always be a concern if we intend to have a sustainable future. The environmental impact of our network is not negligible. Given the snarky comments here, we clearly have a long way to go. EDIT: some reply missed my point, I am not claiming this particular optimization is the holy grail, only that I'd have liked for added benefit of red…

The vast majority of internet bandwidth is people streaming video. Shaving a few megs from a webpage load would be the tiniest drop in the bucket. I am all for efficiency, but optimizing everywhere is a recipe for using up the resources to actually optimize where it matters.

The problem is that a lot of people DO have their own websites for which they have some control over. So it's not like a million people optimizing their own websites will have any control over what Google does with YouTube for instance...

Re: A 14kb page can load much faster than a 15kb page (2022)

#39
post #3

And now try to load the same website over HTTPS

I know some people who are experimenting with using shorter certificates, i.e. shorter certificate chains, to reduce traffic. If you're a large enough site, then you can save a ton of traffic every day.

Re: A 14kb page can load much faster than a 15kb page (2022)

#40
post #30

It seems the better solution is to not use HTTP server software that employs this slow start concept. Using my own server software I was able to produce a complex single page app that resembled an operating system graphical user interface and achieve full state restoration as fast as 80ms from localhost page request according to the Chrome performance tab.

TCP settings are OS level. The web server does not touch them.

The article says this is not a TCP layer technology, but something employed by servers as a bandwidth estimating algorithm.

You are correct in that TCP packets are processed within the kernel of modern operating systems.

Edit for clarity:

This is a web server only algorithm. It is not associated with any other kind of TCP traffic. It seems from the down votes that some people found this challenging.

Post reply on HN