Now Available: The GTmetrix MCP

Get GTmetrix performance testing data and analysis integrated right into your AI tool.

Available to all users - Use code MCP25 for 25% off a GTmetrix PRO plan! Learn More

TRY IT NOW

YSlow: Minify JavaScript and CSS

Recommendations

Lighthouse
Metrics
Audits
PageSpeed (Legacy)
YSlow (Legacy)

Overview

Strip unnecessary characters from JavaScript and CSS to speed up download times.

How does your site score on this recommendation?

Details from Yahoo!

Minification removes unnecessary characters from a file to reduce its size, thereby improving load times. When a file is minified, comments and unneeded white space characters (space, newline, and tab) are removed.

This improves response time since the size of the download files is reduced.

Read our Lighthouse documentation to learn more about CSS and JavaScript minification.

Summary

CSS/JS
Medium

YSlow recommends:

Two popular tools for minifying JavaScript code are JSMin and YUI Compressor. The YUI compressor can also minify CSS.

In addition to minifying external scripts and styles, inlined