News for hackers. Stuff that matters.
Re:A 14kb page can load much faster than a 15kb page by subhashchy on Thursday August 25, 2022 @09:44AM (#32593614)
This is very cool. In the age if bloated JS frameworks and Bulky Desktop sites loaded on Mobile devices, its refreshing to see someone putting efforts to make the pages fit in a single MTU.

However, just page size is half the story.

Look at the screenshots below -

#1 - Here you can see this page (9KB) - 110ms - https://i.imgur.com/qeT2Az0.jpg

#2 - Another page, 29 KB in size - 42ms. https://i.imgur.com/tWsLGr1.jpg

Both on same network (Internet), same computer.

1st one (This article) is served by Netlify and AWS (Static hosting).

2nd is an ecommerce store on Dukaan (ecommerce platform for India), I am affiliated with.

Re:A 14kb page can load much faster than a 15kb page by reitanqild on Thursday August 25, 2022 @09:48AM (#32593670)
Tangential: is there a law for websites like there is for countries?

If a country includes the word "Democratic" in the name, it probably isn't.

If a website says "We value your privacy", it probably doesn't.

Re:A 14kb page can load much faster than a 15kb page by mminer237 on Thursday August 25, 2022 @09:54AM (#32593751)
Yeah, it's just waiting on the server for most of that time in the first screenshot. Static (or cached) sites are going to be a lot faster than sites that have to re-render things every time.
Re:A 14kb page can load much faster than a 15kb page by subhashchy on Thursday August 25, 2022 @09:57AM (#32593791)
endtimes.dev is on netlify I believe and a static site, correct ?
Re:A 14kb page can load much faster than a 15kb page by mminer237 on Thursday August 25, 2022 @10:46AM (#32594360)
Oh, maybe. I don't know. I'm just saying the waterfall is green, so it's waiting on the server most of the time, and I'm not sure why else that would be other than location.

Trying it myself, I can't reproduce that though. The first takes 40ms to connect to the server and 3ms downloading the page. The second take 40ms to connect, 40ms downloading the HTML, and then another 2000–3000ms downloading all the other assets.