Confirming the benefits of Javascript minification

Nick Doyle
1 min readJul 24, 2018

--

Originally published 24th May, 2013

I was skeptical of the benefits of minification when you’re gzipping at serve-time anyway. I know you’re always going to save _something_, but I didn’t think it would be enough to be worth the effort.
So ran a brief test using jQuery as the source.
Results:

64 jquery.1.9.1.min.js.gz
160 jquery.1.9.1.js.gz
184 jquery.1.9.1.min.js
528 jquery.1.9.1.js

So yeah it’s worth it. On jQuery at least, you more than halve the size.

--

--

Nick Doyle
Nick Doyle

Written by Nick Doyle

Cloud-Security-Agile, in Melbourne Australia, experience includes writing profanity-laced Perl, surprise Migrations, furious DB Admin and Motorcycle instructing

No responses yet