3 ms·
Yeah. As a developer, whenever I see minified code I cry. It means I work with people who have no sense of reality, and it means all my debugging sessions are
by josteink 13y ago
Yeah. As a developer, whenever I see minified code I cry.
It means I work with people who have no sense of reality, and it means all my debugging sessions are going to be way harder and much less productive.
That's a real loss for a fictional gain. Minifying needs to die.
- njr123 13y agoIn my experience minified js is 30-40% smaller, which can make a pretty significant difference in terms of load time. The debugging argument doesn't really make sense to me, since the code should only be minified in production anyway. Still, in the case of a browser extension it wouldn't really make a difference since the files are coming from the disk.
- zapt02 13y agoIf we're discussing serving it to the browser, just use gzip and get the same size savings without any of the minification!
- masklinn 13y agoIIRC you can get slightly more gain with a very aggressive minimizer and gzip than gzip alone. It's completely pointless for a browser extension though.
- Yaggo 13y agoMinifying production-deployed code is fine (although gzipping largely eliminates benefits of minifying). If the code is open-sourced, the unminified version is available. If not, the code is not meant to be debugged by you anyway. (I agree, the latter doesn't always apply in non-ideal world.)
- raverbashing 13y agoMore importantly, minifying has no effect on the performance of the app. (unless you're doing some smart stuff like what Google Closure does) The Javascript engine will JIT it or at least use an intermediate representation as soon as it's loaded, rendering minified or regular code the same. Minifier helps with load times but extensions are local, (and the difference in time is really negligible this first time)