Compare load times between minified and unminified JavaScript libraries
Real Server, Real World Numbers - Including Brotli Compression
Compare load times when using all three libraries together
View ComparisonCompare unminified 3-library stack vs minified all-in-one Datastar
View ComparisonThis project demonstrates the importance of minification in web development by showing real-time load time comparisons.
This project provides real-world context to the extended Twitter thread about JavaScript bundle sizes and minification. While opinions from famous developers are interesting, actual metrics tell the real story.
Why initial download size matters:
It's surprising when library authors who advocate for simplicity don't prioritize minification. While philosophies like "locality of behavior" and sending HTML over the wire are excellent for reducing complexity, why not also reduce the bytes? A 63.5% size reduction (or 50% with brotli) is significant, especially when every millisecond counts for user experience.
The measurements on this site show that minification isn't just a "nice to have" — it's a substantial optimization that can dramatically improve load times, especially on slower connections. When choosing libraries, both architecture AND delivery optimization matter.
Note on methodology: All test pages are intentionally written in raw JavaScript without any framework dependencies. This attempts to eliminate any potential cache bias that could occur from using the libraries being tested to build the test harness itself, trying to show clean and accurate measurements.
This video about game optimization makes most of the arguments for me. While it's targeted at game development, the same ideas are 100% applicable to web development. Whether you're shipping game assets or JavaScript libraries, the principles remain constant: smaller downloads mean faster loads, better user experience, and broader accessibility.
The video highlights how even small optimizations compound into significant performance gains. In web development, this translates directly: a 63.5% reduction in file size isn't just a number — it's the difference between a user staying on your site or bouncing, between passing Core Web Vitals or failing, between accessibility for users on limited data plans or exclusion.