Minification (CSS & JavaScript)
Minification is the removal of unnecessary characters such as whitespace, line breaks and comments from CSS and JavaScript files – with JavaScript, internal variable names are shortened as well – without changing functionality, which reduces file size and therefore download time.
In practice
In practice, build tools or bundlers usually handle minification automatically rather than it being done by hand. Combined with compression such as gzip or Brotli, further savings are possible.