3 ms·
People minify js files because they can. When you already have a pipeline like gulp or grub (and if you are developing JavaScript, you should), adding minifica
by 6t6t6 11y ago
People minify js files because they can.
When you already have a pipeline like gulp or grub (and if you are developing JavaScript, you should), adding minification is just one more line of code. So, why not minify if it doesn't represent any effort and it could mean better performance? Also, usually, developers don't have access to the production webserver.
Most of the time, people are to busy to analyze all the pros and cons of every action they do.
Said that, if Debian is an open source OS, then yes, they should have access to the unminified code of the applications they include. Or, at least, the sourcemaps.
- tomjakubowski 11y agoAnecdotally I've heard of cases where minifying a script (running through the "uglify2" tool) led to extreme and obvious performance issues (like the UI thread freezing for several beats in cases where unminified JS did not).
- 6t6t6 11y agoIn that case, the problem doesn't happen because we are minifying the files, but because this particular implementation of the minifier has a bug. I guess...
- tomjakubowski 11y agoIn particular, it was only an issue when identifiers were mangled (i.e. made as short as possible).
- deleted 11y ago[deleted]