2 ms·
care about your viewers - don't use just left audio channel in your video in more seriousness though - please minify, but don't obfuscate, or even better don't
by lousken 5y ago
care about your viewers - don't use just left audio channel in your video
in more seriousness though - please minify, but don't obfuscate, or even better don't use js if it isn't completly necessary
- lucb1e 5y agoSo you call for the opposite of what the speaker does, but why? "Please minify", what makes you say that?
- lousken 5y agoBecause it's not needed, you can save even more by minifying + compressing. And if you want to view it normally, either you can get the formatted version of the code just by clicking on pretty print in chrome or ff or you can load from source map instead
- lucb1e 5y agoThe pretty print is far, far from the original. Function names, variable names, comments, structure like if turning into ?:, etc. You indeed need to provide map files and that's often not done. Given how marginal the gains are, I can see the author's point.
- lousken 5y agoRight, but that's where you can split my response into two: either you minify by removing comments and whitespaces - then pretty print is enough. The other option is that you also mangle the code and obfuscate it, remove variable names etc. and that's when source maps comes into play