Live data from Hacker News

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

endtimes.dev

271–280 of 356 posts

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

#271
post #264

Earlier quoted context omitted.

Have to say, I absolutely love Caddy as a general webserver and reverse-proxy. Lightweight, easy to configure, relatively flexible, sane defaults.

> easy to configure, relatively flexible, sane defaults Compared to what? You think nginx is not easy to configure or has insane defaults somehow? Really baffled why people come out of the wood work to pile on beautifully architectured designs in favor of some random project they happen to like or just because it's written in a language they have a special affinity for like Go or something.

In terms of saner defaults: The charset="utf-8" default described above is one example. TLS enabled by default is another.

Also, you could asked all your questions without being incendiary and making assumptions about why people like Caddy. Nobody mentioned Go except you.

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

#272

Earlier quoted context omitted.

I don’t have a citation handy, but this is something that Google has famously studied. They claimed years ago that a tiny increase in the loading time of the Google home page led to a measurable decrease in the number of searches (like, a few percent). Not everyone is operating “at Google scale”, of course, but in aggregate the effect is real and faster-loading pages have better metrics. So, most satellite internet u…

Amazon has publicly stated that every 100ms in additional loading time leads to 1% loss in revenue. For the scale of Amazon, that is massive

It was a very limited study and Amazon have sent C&Ds to other large companies to tell them to stop using that quote

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

#273

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 Bo…

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

#274
post #264

Earlier quoted context omitted.

Have to say, I absolutely love Caddy as a general webserver and reverse-proxy. Lightweight, easy to configure, relatively flexible, sane defaults.

> easy to configure, relatively flexible, sane defaults Compared to what? You think nginx is not easy to configure or has insane defaults somehow? Really baffled why people come out of the wood work to pile on beautifully architectured designs in favor of some random project they happen to like or just because it's written in a language they have a special affinity for like Go or something.

Have you used Caddy for reverse proxying compared to nginx? It's infinitely easier. Two lines per site, https built in, dynamic upstreams are handled by default, HTTP 2 enabled (maybe nginx does HTTP 2 by default,; not sure).

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

#275
post #171

I like the idea mentioned in the article of increasing the number of packets sent in the slow start - as far as I know you could just crank that from the server side TCP stack to something much larger, right?

This was my very first thought - TCP/IP behaviour isn’t carved in stone, just make your server send more data at the start!

Most CDNs etc. use packet pacing to feed the packets out in a continual stream without overwhelming the network

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

#276

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 Bo…

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.

endtimes.dev is on netlify I believe and a static site, correct ?

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

#277
post #264

Earlier quoted context omitted.

> easy to configure, relatively flexible, sane defaults Compared to what? You think nginx is not easy to configure or has insane defaults somehow? Really baffled why people come out of the wood work to pile on beautifully architectured designs in favor of some random project they happen to like or just because it's written in a language they have a special affinity for like Go or something.

Have you used Caddy for reverse proxying compared to nginx? It's infinitely easier. Two lines per site, https built in, dynamic upstreams are handled by default, HTTP 2 enabled (maybe nginx does HTTP 2 by default,; not sure).

Easier in what sense? If you find the most esoteric feature and then claim it's easier for that purpose, that doesn't count! If you're going to claim it's easier to configure than nginx you have to make a fair comparison by comparing not the features that you care about, but instead the features that define the system as a whole.

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

#278
post #264

Earlier quoted context omitted.

> easy to configure, relatively flexible, sane defaults Compared to what? You think nginx is not easy to configure or has insane defaults somehow? Really baffled why people come out of the wood work to pile on beautifully architectured designs in favor of some random project they happen to like or just because it's written in a language they have a special affinity for like Go or something.

In terms of saner defaults: The charset="utf-8" default described above is one example. TLS enabled by default is another. Also, you could asked all your questions without being incendiary and making assumptions about why people like Caddy. Nobody mentioned Go except you.

No post body was provided.

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

#279
post #179

Earlier quoted context omitted.

What's the substitute to not using custom fonts? Or is there a better way to load it? I'm having a hard-time convincing our brand team to defaulting to a system font.

For most things just using the user's configured font is almost as good, if not better. For cases where you really want to make something stand out custom fonts can be nice but you can also try using "font stacks" that the user has already installed. In general I recommend using the default font for "body text" because you know it is something that the user finds easy to read. For headings, buttons and smaller string…

> In general I recommend using the default font for "body text" because you know it is something that the user finds easy to read.

A lot of users don't know how to or can't change the default font. For instance, I have no idea idea how to change the default font on my phone, or even if I can. It's probably better to say "at least you know it's something that was selected to be at least tolerably usable by most people, which cannot be said of the design team's fancy spindly small-x font".

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

#280
post #277

Earlier quoted context omitted.

Have you used Caddy for reverse proxying compared to nginx? It's infinitely easier. Two lines per site, https built in, dynamic upstreams are handled by default, HTTP 2 enabled (maybe nginx does HTTP 2 by default,; not sure).

Easier in what sense? If you find the most esoteric feature and then claim it's easier for that purpose, that doesn't count! If you're going to claim it's easier to configure than nginx you have to make a fair comparison by comparing not the features that you care about, but instead the features that define the system as a whole.

I would think automatic support for TLS, no configuration necessary, would qualify?
Post reply on HN