Minification (CSS & JavaScript)

Minification is the removal of unnecessary characters – whitespace, comments, long variable names – from CSS and JavaScript files without changing their 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.

Matching service

Sources

← Back to the glossary