Home My Account ☎ 480-624-2500

What are the roles of minifying JS and CSS files?

August 31, 2017

Minification works by analyzing and rewriting the text-based parts of a website to reduce its overall file size. Minification extends to scripts, style sheets, and other components that the web browser uses to render the site.

Minification is performed on the web server before a response is sent. After minification, the web server uses the minified assets in place of the original assets for faster distribution to users.


The benefit of minification is that it only needs to be performed when the source file changes. When combined with other compression techniques, minification can greatly reduce bandwidth usage for both the enterprise and the user.