- Network cost - More bytes equals longer download times.
- Only send the code that your users need.
- Minify your code.
- Compress your code.
- Remove unused code.
- Cache your code to reduce network trips.
npm install uglify-js uglifyjs [input files] [options]