What is Minification?
The short answer
Minification removes whitespace, comments and long names from code so HTML, CSS and JavaScript files are smaller and download faster.
Minification, explained
Build tools do it automatically for production; it pairs with compression for the biggest savings.
Questions people ask about Minification
What is Minification?
Minification removes whitespace, comments and long names from code so HTML, CSS and JavaScript files are smaller and download faster.
Related terms
Compression shrinks text files like HTML, CSS and JavaScript as the server sends them, using Gzip or Brotli, and the browser expands them on arrival.
BundlerA bundler combines a project's many source files and dependencies into optimised files the browser can load efficiently; Vite, webpack and Turbopack are common ones.
Page speedPage speed is how quickly a web page loads and becomes usable, measured by metrics like Largest Contentful Paint, Interaction to Next Paint and layout stability.
Core Web VitalsCore Web Vitals are Google's three user-experience metrics: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability.
Part of the Web Encyclopedia by Apex Flow Digital. Definitions are general knowledge, kept current, with no invented statistics.