Live data from Hacker News

A 14kb page can load much faster than a 15kb page

endtimes.dev

61–70 of 356 posts

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

#61

Earlier quoted context omitted.

1MB per photo is fine. It's the content after all. Many sites today will load 10MB of JS and custom font crap alone, just to show a few paragraphs of text. I don't think the point is the size itself, but it's the content vs. bloat ratio.

1MB per photo is massive. Its easy to compress photos down to 100KB or less.

Wondering how. The banner image won't be displayed by Facebook or Twitter unless it's 1200x650 in size.

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

#63
I wonder... am I good if the static render is Probably for a blog, if the readable content is in that static render, it would be a reasonable experience. A couple of seconds later the cool interactive parts come to life.

===

PageSpeed Insights scores:

Performance: 100% First Contentful Paint: 0.9 s Time to Interactive: 0.9 s Speed Index: 0.9 s Total Blocking Time: 0 ms Largest Contentful Paint: 0.9 s Cumulative Layout Shift: 0

Meh. Not bad.

Ok it's very good. Perfect. When you click around, it doesn't seem like a traditional client/server app, but like a SPA. Without being one!

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

#64

That's only doable with a text-centric website. I'm currently finishing a photography section for my personal website, and the gallery pages are several hundred kBs in size, while single photo page is almost 1MB in size (provided you load it on a 28" screen; browser will load smaller variants on smaller screens). Most of that weight is the thumbnails (and almost-full-size photo in the latter case). The only JS I have…

Once JPEG XL is widely supported those photos could be significantly smaller.

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

#65
post #61

Earlier quoted context omitted.

1MB per photo is massive. Its easy to compress photos down to 100KB or less.

Wondering how. The banner image won't be displayed by Facebook or Twitter unless it's 1200x650 in size.

I done photos larger than that at closer to 50KB with AVIF. 100KB with JPEG should be doable.

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

#66

Earlier quoted context omitted.

1MB per photo is fine. It's the content after all. Many sites today will load 10MB of JS and custom font crap alone, just to show a few paragraphs of text. I don't think the point is the size itself, but it's the content vs. bloat ratio.

1MB per photo is massive. Its easy to compress photos down to 100KB or less.

If it’s an illustrative photo for an article, sure.

If it’s a gallery photo for a site promoting a photographers skill or library, nah…

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

#67
post #61

Earlier quoted context omitted.

1MB per photo is massive. Its easy to compress photos down to 100KB or less.

Wondering how. The banner image won't be displayed by Facebook or Twitter unless it's 1200x650 in size.

Webp could be worth trying. Stripping metadata also. If staying with jpg - Jpgoptim could help.

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

#68
post #22

Shameless self-promotion: the homepage of plaintextsports.com is 5.2kb today [1], an in-progress WNBA game (4th quarter) is 11.2kb [2], and an extra inning MLB game is 8.8kb [3]. I wasn't aware of this size threshold, and I'm not at this level of optimization, but I'm always pleased to find more evidence of my playful claim that it's the "fastest website in the history of the internet". [1]: https://plaintextsports.c…

It's very small, but it's difficult to scan and painful to read. You could easily use built-in HTML structures to make it actually readable. Your site is, in my opinion, as much a deviation from the old readable web as the over-designed modern sites are. There are lots[1] of small, "class-less" CSS libraries that would keep your site as small (or smaller, with tree-shaking in a modern build system) and it would end u…

It looks like it is designed to be a sidebar.
Post reply on HN