Live data from Hacker News

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

endtimes.dev

181–190 of 324 posts

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

#182

If you want to have fun with this: the initial window (IW) is determined by the sender. So you can configure your server to the right number of packets for your website. It would look something like: ip route change default via dev initcwnd 20 initrwnd 20 A web search suggests CDNs are now at 30 packets for the initial window, so you get 45kb there.

> A web search suggests CDNs are now at 30 packets for the initial window, so you get 45kb there. Any reference for this?

I'm not going to dig it up for you, but this is in line with what I've read and observed. I set this to 20 packets on my personal site.

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

#183

If you want to have fun with this: the initial window (IW) is determined by the sender. So you can configure your server to the right number of packets for your website. It would look something like: ip route change default via dev initcwnd 20 initrwnd 20 A web search suggests CDNs are now at 30 packets for the initial window, so you get 45kb there.

> A web search suggests CDNs are now at 30 packets for the initial window, so you get 45kb there. Any reference for this?

* https://sirupsen.com/napkin/problem-15

* https://www.cdnplanet.com/blog/initcwnd-settings-major-cdn-p...

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

#184
post #79
post #34

Earlier quoted context omitted.

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

The decision to use react for the start menu wasnt out of competency. The guy said on twitter that thats what he knew so he used it [1]. Didnt think twice. Head empty no thoughts 1 https://x.com/philtrem22/status/1927161666732523596

"Hi it's the guy who did " is a Twitter meme.

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

#185
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.

I think, this is just an Art project.

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

#186
post #114

The geostationary satellite example, while interesting, is kinda obsolete in the age of Starlink

Starlink is only 1 option in the satellite internet market. There are too many embedded systems and legacy infrastructure that its not reasonable to assume that 'satellite internet' means Starlink. Maybe in 20 years, but not today.

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

#187
post #74

I just checked my home page [1] and it has a compressed transfer size of 7.0 kB. / 2.7 kB main.css 2.5 kB favicon.png 1.8 kB ------------------- Total 7.0 kB Not bad, I think! I generate the blog listing on the home page (as well as the rest of my website) with my own static site generator, written in Common Lisp [2]. On a limited number of mathematical posts [3], I use KaTeX with client-side rendering. On such pages…

I never understood math / latex display via client side js. Why can't this be precomputed into html and css?

> I never understood math / latex display via client side js. Why can't this be precomputed into html and css?

It can be. But like I mentioned earlier, my personal website is a hobby project I've been running since my university days. It's built with Common Lisp (CL), which is part of the fun for me. It's not just about the end result, but also about enjoying the process.

While precomputing HTML and CSS is definitely a viable approach, I've been reluctant to introduce Node or other tooling outside the CL ecosystem into this project. I wouldn't have hesitated to add this extra tooling on any other project, but here I do. I like to keep the stack simple here, since this website is not just a utility; it is also my small creative playground, and I want to enjoy whatever I do here.

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

#188
> Once you lose the autoplaying videos, the popups, the cookies, the cookie consent banners, the social network buttons, the tracking scripts, javascript and css frameworks, and all the other junk nobody likes — you're probably there.

How about a single image? I suppose a lot of people (visitors and webmasters) like to have an image or two on the page.

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

#189

Earlier quoted context omitted.

Do we? Let's compare some numbers. Creating an average hamburger requires an input of 2-6 kWh of energy, from start to finish. At 15¢ USD/kWh, this gives us an upper limit of about 90¢ of electricity. The average 14 kB web page takes about 0.000002 kWh to serve. You would need to serve that web page about 1-300,000 times to create the same energy demands of a single hamburger. A 14 mB web page, which would be a prett…

Slightly veering off topic but I honestly wonder how many burgers will I fry if I ask ChatGPT to make a fart app?

A tiny fraction of a burger.

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

#190

Earlier quoted context omitted.

Now go to an average McDonalds, with hundreds of orders, automatically added value meals, customer rewards, etc. consuming thousands of cows and a lot of pastureland. Then multiply that by the number of daily customers. Without web pages (information in general), we return to the Dark Ages. Reducing the number of hamburgers people eat doesn't really hurt anyone.

Sure, but you've got to eat something. Now, if mcdonalds padded 5kB of calories of a cheesburger with 10.000 kilobytes of calories in wasted food like news sites doo, it would be a different story. The ratio would be 200 kilos of wasted food for 100grams of usable beef.

You don't need to eat burgers though. You can eat food that consumes a small fraction of energy, calorie, land, and animal input of a burger. And we go to McDonalds because it's a dopamine luxury.

It's just an inconvenient truth for people who only care about the environmental impact of things that don't require a behavior change on their part. And that reveals an insincere, performative, scoldy aspect of their position.

https://ourworldindata.org/land-use-diets

Post reply on HN