Fast Velocity Minify Best Settings to Combine JS Files

Fast Velocity Minify is one of the best WordPress plugins to minify and combine CSS and JavaScript files. To take advantage of the new HTTP/2 protocol, the current code of the plugin no longer combines the JS files by default. This can have a huge impact on your page speed.

PageSpeed Insights can show a big improvement for your website if the CSS and JS files are combined. The speed increase will, of course, depend on how many CSS and JS files are required. After installing and configuring Fast Velocity Minify, make sure your JS files are combined into one or two files. If they are not, no worries, they will with just a few settings.

When combining the files you might run into layout issues or other issues so you need to test thoroughly before implementing this. You want high Google Page Speed but you also need your layout to look good. The plugin will let you exclude some files which should not be combined.

For most websites, you can combine all CSS files in one file.

For JS files you need to manually populate some fields to make sure the JS files are combined. Below are some settings for the JS Settings setup that you can use when starting the process. You might need to tweak them based on the results you get.

Enable JS Processing: Checked

Advanced JS Options

  • Combine JS Files: Checked
  • Disable JS Files Minification: Not checked
  • Disable JS Inline Minification: Not checked
  • Disable JS link Preload: Not checked

Ignore Script Files: blank

Render Blocking JS file


Defer JS Files


Defer Inline JavaScript


Delay third party scripts until user interaction

Remove JavaScript Scripts: blank

If you are using a CDN, you might want to look at those options, too. I am not sure how they will impact your actual speed and Google Page Speed, GTmetrix, etc. results. Here are the settings that I use, which I believe are pretty much the default values for CDN Settings:

CDN Options

  • Enable CDN Processing: Checked
  • Enable CDN for merged CSS files: Checked
  • Enable CDN for merged JS files: Checked

CDN Integration

div[data-background-image], section[data-background-image]
img[src*=/wp-content/], img[data-src*=/wp-content/], img[data-srcset*=/wp-content/]
link[rel=icon], link[rel=apple-touch-icon]
picture source[srcset*=/wp-content/]
video source[type*=video]

(If you don’t use a CDN, no need to populate any of the CDN related settings.)

I found that sometimes, even if there were some layout issues after combining the files, when using the CDN the issues were resolved.

Also, make sure to test your website with and without being logged in as different CSS/JS will be loaded and you need to make sure your website is working fine in all scenarios.

Leave a Reply