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