dev.to

3 notes link to this site.

Speed Needs Design, or: You can’t delight users you’ve annoyed

The Web’s size and diversity makes client-side “fast enough” impossible to judge.

The webs size and diversity make the assertion “____ enough” misleading in really any circumstance unless you have more context. Nothing is ever “enough” unless you can say “enough compared to ____”.

when fresh pageloads are fast, you can cheat: who cares about reloading when it’s near-instant?

Hitting refresh is the “have you tried turning it on and off again” of the web. And nobody will care to reboot your web page if the cost is negligible.

So many good nuggets in this series.

Making the world’s fastest website, and other mistakes

Worth remembering:

HTTP/1.1 204 No Content
      Cache-Control: max-age=999999999,immutable
      

This is the fastest web page. You may not like it, but this is what peak performance looks like.

That may seem unhelpful — of course a useful page is slower than literally nothing! — but anything added to a frontend can only slow it down. The further something pushes you from the Web’s natural speed, the more work needed to claw it back.

Why I don't use web components by Rich Harris

I think that websites should work without JavaScript wherever possible. Web components don't.

This is a pretty good summary of my feelings in dealing with web components. I particularly like his points about progressive enhancement. I’ve only found web components particularly useful for pieces of your UI that are intrinsically interactive or really small, discrete pieces of UI that can be progressively enhanced quite easily (like Github’s time-elements).