News for hackers. Stuff that matters.
Re:A 14kb page can load much faster than a 15kb page by fragmede on Wednesday August 24, 2022 @10:43PM (#32588804)
FWIW, the HN frontpage is 33kB. It's one of the better performing websites I frequent.
Re:A 14kb page can load much faster than a 15kb page by calibas on Thursday August 25, 2022 @01:32AM (#32589883)
It's only 8kB compressed.
Re:A 14kb page can load much faster than a 15kb page by ThreePinkApples on Thursday August 25, 2022 @03:15AM (#32590600)
A fresh load of the page (according to Chrome) is 21.5kB transmitted, 59.1kB uncompressed. That's when loading with nothing cached. The HTML is just 7.9kB, but then the CSS is 2.2kB, JS is 2.3kB, and the favicon is 7.9kB which is a bit funny (but it's of course irrelevant for the actual page).

HN could put the CSS and JS into the generated HTML file and still stay under 14kB for the initial load, which then would give you almost everything needed to render the page except a few gifs.

Re:A 14kb page can load much faster than a 15kb page by bawolff on Thursday August 25, 2022 @03:37AM (#32590766)
Favivon isn't blocking the initial request so it really shouldn't matter.

> HN could put the CSS and JS into the generated HTML file and still stay under 14kB

At the expense of caching those resources that stay static. With http/2 the benefit of merging into one resource should be negligible anyways.

Re:A 14kb page can load much faster than a 15kb page by SahAssar on Thursday August 25, 2022 @05:25AM (#32591455)
> With http/2 the benefit of merging into one resource should be negligible anyways.

That's not true, by including them in the HTML you save an extra round trip for requesting them. That's what HTTP2 Push was supposed to solve, but it's being deprecated & removed.

Re:A 14kb page can load much faster than a 15kb page by bawolff on Thursday August 25, 2022 @02:42PM (#32598142)
That's a fair point.
Re:A 14kb page can load much faster than a 15kb page by dang on Thursday August 25, 2022 @01:58AM (#32590075)
It needs to get faster. Soon!
Re:A 14kb page can load much faster than a 15kb page by jacooper on Thursday August 25, 2022 @07:26AM (#32592239)
What are you planning?
Re:A 14kb page can load much faster than a 15kb page by dang on Thursday August 25, 2022 @01:46PM (#32597291)
I've been working on an implementation of Arc in SBCL which is much faster and also will easily let HN run on multiple cores. It's been in the works for years, mainly because I rarely find time to work on it, but it's all pretty close to done.
Re:A 14kb page can load much faster than a 15kb page by PoignardAzur on Thursday August 25, 2022 @03:18AM (#32590629)
Yeah, the contrast with reddit is stunning.

When I open a reddit page on mobile, I usually open it in a new tab to give the browser time to load it. When I open a HN page, it's instant.

Re:A 14kb page can load much faster than a 15kb page by wildrhythms on Thursday August 25, 2022 @06:11AM (#32591715)
Even on mobile I will 'fix' the Reddit URL by applying the old.* subdomain. Works great!