Reducing the Number of Minified Files

WP Rocket can combine minified files into one file per file type (CSS or JS). It can also combine multiple requests for Google web fonts into one single request.

These settings can help with your performance grade and reduce the number of HTTP requests on your website; however, depending on your server, theme, and plugins, they could also slow your site down, or cause broken functionality.

Heads up: Combe files is not a “set and forget” feature!
Note that the settings for Combine files for CSS and JS will appear once your have activated Minify CSS/JS. Your should test these settings thoroughly before use. Be aware that changes made to your plugins or theme can change how this feature interacts with the rest of your site. If you notice issues, resolve them first, or deactivate the option again.

Use Combine files settings for CSS/JS when:

  • they factually speed up your site in terms of load time;
  • no functionality or layout gets broken;
  • your site runs on HTTP/1.

DON’T use Combine files settings for CSS/JS when:

  • you see JavaScript errors in the console panel of your browser’s development tools;
  • you see broken layout or functionality;
  • your site runs on HTTP/2.

In order to activate the feature, go to Static Files and check any of the Combine files settings: