25 points · by soofaloofa · 15y ago · 19 comments
Sacrificing profits and UX for a few hypothetical developers is lunacy. If you really want to share the wealth and let newbie developers read your source, blog about it or submit it to Github - then you can include explanation of your design and make it far easier for them to get the interesting bits.
When you enable GZIP it's even less so.
Uncompressed (normal:minified) 232651:90518
Gzip -6 (normal:minified) 66778:31610
Gzip -1 (normal:minified): 81986:36633
gzip -9 only saves a few hundred bytes on each vs default compression level of 6.
bzip2 and xz do not achieve dramatic reductions of the readable jquery code either; the normal:minified ratio is slightly improved, but is still approx. 2:1.
Is that so. Tell me what else you know about the scope of my web application.
Yet there are so many neat JavaScript tricks used on throwaway or one-off projects that are minified without reason.
I don't see this an an anti-minification argument at all. Instead, it's an argument for open source in disguise.
used on site: http://laserey.es/media/javascripts/base.min.js
non-minified: http://laserey.es/media/javascripts/base.js
I assume we're talking about individual per-site code here, since they can always download non-minified versions of commonly served frameworks easily somewhere else.
We're simply moving from one era into another; nothing wrong with progress!
Include paths to the original JS files (un-minified) at the top of the minified JS file as comments.