This plugin includes options for developers and advanced users, however the default settings should work just fine for most sites.
Kindly read our faqs about possible issues with you theme or specific plugins.
I can offer you aditional
custom made optimization on top of this plugin. If you would like to hire me, please visit my profile links for further information.
wp fvm purge
wp --url=blog.example.com fvm purge
wp site list --field=url | xargs -n1 -I % wp --url=% fvm purge
wp fvm stats
wp --url=blog.example.com fvm stats
wp site list --field=url | xargs -n1 -I % wp --url=% fvm stats
/wp-content/plugins/directory or upload the zip within WordPress
Pluginsmenu in WordPress
Settings > Fast Velocity Minifyand that’s it.
FVM doesn’t touch your original files. It copies those files to the cache directory, minifies that copy and merges them together under a different name. If you install new plugins, change themes or do plugin updates, FVM will purge its cache as well as some of the most popular cache plugins.
Please see the question below.
Each line on the ignore list will try to match a substring against all CSS or JS files, for example
//yoursite.com/wp-content/plugins/some-plugin/js/ will ignore all files inside that directory. You can also shorten the URL like
/some-plugin/js/ and then it will match any css or js URL that has
/some-plugin/js/ on the path. Obviously, doing
/js/ would match any files inside any “/js/” directory and in any location, so to avoid unexpected situations please always use the longest, most specific path you can use. There is no need to use asterisks or regex code (it won’t work).
The ignore list “is” working, just try to use partial paths (see previous faq) and use relative urls only without any query vars.
Currently we recommend the “Cache Enabler” plugin, for it’s simplicity, compatibility with most systems and performance. Alternatively, W3 Total Cache is a great choice as well.
Unless you are not excluding dynamic CSS files that change the url in every pageload, its not heavy at all. On the first run, each single file is minified into an intermediate cache. When a new group of CSS/JS files is found on a new page, it reuses those files and merges them into a new static cache file. All pages that request the same group of CSS or JS files will also make use of that file, thus regeneration only happens once. In addition, gz and br files will be pre-compressed (if supported).
When we merge and minify the css and js files, we also create a
.gz file to be used with
gzip_static on Nginx. You need to enable this feature on your Nginx configuration file if you want to make use of it. Likewise, if you have Nginx compiled with brotli and have enabled the php-ext-brotli extension for PHP, you can enable the brotli_static option and FVM will also generate .br files for you 🙂
Yes, it generates a new cache file for every different set of JS and CSS requirements it finds, but you must enable and configure FVM settings for each site in your network separatly (no global settings for all sites).
If you are just inserting ads on your pages, yes. If you are using a custom script to inject those ads, please double check if it works.
a) You cannot do double minification, so make sure you have disabled any features on your theme or other plugins that perform minification of css, html and js files.
d) Sometimes a plugin conflicts with another when merged (look at google chrome console log for hints). Try to disable CSS processing first and see if it works. Disable JS processing second and see if it works. Try to disable HTML minification last and see if it works. If one of those work, you know there is a conflict when merging/minifying.
e) If you have a conflict, try to add each CSS and each JS file to the ignore list one by one, until you find the one that causes the conflict. If you have no idea of which files to add, check the log file on the “status page” for a list of files being merged into each generated file.
f) If you coded some inline JS code that depends on a JS file being loaded before it’s execution (render blocking), try to save that code into an external file and enqueue it as a dependency. It will be merged together and run after the other file, thus no longer being “undefined”.
Yes and no. You can for example, merge js files such as jQuery if they are loading from a CDN and it will work, because it doesn’t matter where those files are being served from. However, stuff like Facebook and other social media widgets, as well as tracking codes, widgets and so on, cannot usually be merged and cached locally as they may load something different on every pageload, or anytime they change something. Ads and widgets make your site slow, so make sure you only use the minimum necessary plugins and widgets.
The plugin itself does not do any “changes” to your site and all original files are untouched. It intercepts the enqueued CSS and JS files just before printing your HTML, copies them and enqueues the newly optimized cached version of those files to the frontend. As with any plugin… simply disable or uninstall the plugin, purge all caches you may have in use (plugins, server, cloudflare, etc.) and the site will go back to what it was before installing it. The plugin does not delete anything from the database or modify any of your files.
Some “cheap” (or sometimes expensive) “optimized” hosting providers, implement a (misconfigured) aggressive cache on their servers that caches PHP code execution and PHP files. I’ve seen people completely deleting all WordPress files from their host via SFTP/FTP and the website kept working fine for hours. Furthermore, very often they rate limit your cache purge requests… so if you delete FVM and are still seeing references to FVM files on the “view-source:https://example.com” please be patient and contact your web hosting to purge all caches. Providers known to have this issue are some plans on hostgator and iPage (please report others if you find them).
Some plugins and themes need to edit the layout and styles on the frontend. If you have trouble with page editors, please enable the “Fix Page Editors” option on FVM and purge your caches. Note: You will only see the FVM minification working when you’re logged out or using another browser after this setting.
You are probably a developer if you are trying this. The answer is: make sure FVM is only generating 1 CSS file, because “async” means multiple files will load out of order (however CSS needs order most of the times). If FVM is generating more than 1 CSS file per mediatype, try to manually dequeue some of the CSS files that are breaking the series on FVM (such as external enqueued files), or add their domain to the settings to be merged together. Please note… this is an advanced option for skilled developers. Do not try to fiddle with these settings if you are not one, as it will almost certainly break your site layout and functionality.
Your ads or scripts wich are already specifically async will continue to be so, unless you specifically mark them to be merged as well.
Before getting angry because you have no answer within a few hours (even with paid plugins, sometimes it takes weeks…), please be informed about how wordpress.org and the plugins directory work. The plugins directory is an open source, free service where developers and programmers contribute (on their free time) with plugins that can be downloaded and installed by anyone “at their own risk” and are all released under the GPL license. While all plugins have to be approved and reviewed by the WordPress team before being published (for dangerous code, spam, etc.) this does not change the license or add any warranty. All plugins are provided as they are, free of charge and should be used at your own risk (so you should make backups before installing any plugin or performing updates) and it is your sole responsibility if you break your site after installing a plugin from the plugins directory. For a full version of the license, please read: https://wordpress.org/about/gpl/
Support is provided by plugin authors on their free time and without warranty of a reply, so you can experience different levels of support level from plugin to plugin. As the author of this plugin I strive to provide support on a daily basis and I can take a look and help you with some issues related with my plugin, but please note that this is done out of my goodwill and in no way I have any legal or moral obligation for doing this. Sometimes I am extremely busy and may take a few days to reply, but I will always reply.
I am also available for hiring if you need custom-made speed optimizations. After you have installed the plugin, check the “Help” tab for contact information, or check my profile links here on WordPress.
You can get support on the official WordPress plugin page at https://wordpress.org/support/plugin/fast-velocity-minify
Alternatively, you can reach me via info (at) fastvelocity.com for security or other vulnerabilities.
If you would like to donate any amount to the plugin author (thank you in advance), you can do it via PayPal at https://goo.gl/vpLrSV