Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Chris Ferdinandi ⚓️
Chris Ferdinandi ⚓️
@cferdinandi@mastodon.social  ·  activity timestamp 8 months ago

⚓️ New Article: gzip performance is wild! https://ift.tt/P8xVKpU#WebDev#FrontEndDeveloper#100DaysOfCode#CodeNewbie

  • Copy link
  • Flag this post
  • Block
Lea Verou, PhD
Lea Verou, PhD
@leaverou@front-end.social  ·  activity timestamp 8 months ago
@cferdinandi Fantastic post! Explains so much about why the HTTP/2 promise of "you can now have tons of tiny files and it's ok, really" was never realized.

Though one issue I see is caching. With lots of small files, the initial transfer is bigger, but you are unlikely to change all of them at once, so future loads are faster. Bundling loses you that benefit (less so with chunking, but still).

  • Copy link
  • Flag this comment
  • Block
Chris Ferdinandi ⚓️
Chris Ferdinandi ⚓️
@cferdinandi@mastodon.social  ·  activity timestamp 8 months ago
@leaverou absolutely. Though where I am seeing compression sizes smaller than a single HTTP round trip, the impact of that feels negligible.
  • Copy link
  • Flag this comment
  • Block
Ben Delarre
Ben Delarre
@bendelarre@mastodon.social  ·  activity timestamp 8 months ago
@leaverou @cferdinandi even with chunking implementations often get this wrong and cause a cache invalidation cascade that means a core shared chunk change can result in invalidation everything anyway! Great article from 6 years back from Philip Walton on this:

https://philipwalton.com/articles/cascading-cache-invalidation/

Import maps get us real close to solving this finally, but lack of import maps in workers hinders that.

I honestly am constantly annoyed at how poorly we've addressed these problems.

  • Copy link
  • Flag this comment
  • Block
David Bushell 🐝
David Bushell 🐝
@db@social.lol  ·  activity timestamp 8 months ago
@cferdinandi I remember Modernizr* from way back in the day allowed users to select and build a custom bundle

might be a nice solution for your Kelp UI to provide a little GUI tool to choose the modules

* https://modernizr.com/download

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct