⚓️ New Article: gzip performance is wild! https://ift.tt/P8xVKpU#WebDev#FrontEndDeveloper#100DaysOfCode#CodeNewbie
Post
Replies:
4
@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).
@leaverou absolutely. Though where I am seeing compression sizes smaller than a single HTTP round trip, the impact of that feels negligible.
@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.
@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