A 14kb page can load much faster than a 15kb page - https://news.ycombinator.com/item?id=32587740 - Aug 2022 (343 comments)
A 14kb page can load much faster than a 15kb page (2022)
181–190 of 324 posts
Re: A 14kb page can load much faster than a 15kb page (2022)
#182If 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?
Re: A 14kb page can load much faster than a 15kb page (2022)
#183If 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?
Re: A 14kb page can load much faster than a 15kb page (2022)
#184Earlier 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
Re: A 14kb page can load much faster than a 15kb page (2022)
#185The 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.
Re: A 14kb page can load much faster than a 15kb page (2022)
#186The geostationary satellite example, while interesting, is kinda obsolete in the age of Starlink
Re: A 14kb page can load much faster than a 15kb page (2022)
#187I 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?
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)
#188How 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)
#189Earlier 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?
Re: A 14kb page can load much faster than a 15kb page (2022)
#190Earlier 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.
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.