5 ms·
Wrong. Of course if you use a minifier you save bytes, it’s by definition. A decent built tool can still start from static files but also optimize them as much
by cunthorpe 5y ago
Wrong. Of course if you use a minifier you save bytes, it’s by definition. A decent built tool can still start from static files but also optimize them as much as possible. If there’s little CSS it might even just inline it.
- theandrewbailey 5y agoAfter gzip, minified vs. hand written code size is negligible. You are gzipping your HTML, CSS, and JS, right?
- hobofan 5y agogzip? What year is it? 2014? You better brotli your stuff!
- deleted 5y ago[deleted]
- cunthorpe 5y agoLol ok. Maybe you don’t know what you’re talking about. They are 2 separate optimizations. Repeat after me: gzip does not replace minification. But I’m glad you ship your handrolled JS to the client with long variable names, whitespace and comments like it’s 1999. Maybe it’s just for me that minification reduces file sizes by 30%+
- phist_mcgee 5y agoDude relax, no need to be snarky
- cunthorpe 5y agoI hate it when ignorant people talk out of their asses.
- cryptonym 5y agoA properly minified JS might be smaller after compression, even if the difference is not huge, but it may also be faster to parse.