Optimization Features
WP Rocket features info and troubleshooting.
Excluding external JavaScript from combine
Sometimes there can be an issue with external JavaScript files and minification/ concatenation. These 3rd party JavaScript files are also included in the combined file when enabling Combine JavaScript files on the File Optimization tab. If you encounter any issues,…
Excluding inline JavaScript from combine
Combine JavaScript files applies also to inline JavaScript and 3rd party scripts. If this behavior is creating any issue on your site, you can exclude inline JavaScript from the combine option. In this Article Exclude specific scripts Exclude all scripts How…
Export/import settings and version rollback
The Tools tab in WP Rocket provides several options to help manage the plugin settings and version.Export/import settings To Export your settings, press the Download Settings button. A JSON file will be downloaded to your computer with your options enabled…
Extend add missing image dimensions feature
By default, the Add missing image dimensions feature will not be applied on: Externally hosted images, i.e. not hosted on your own domain Images within <picture> tags It's possible to force the feature to be applied on one or both…
Fade in effect for your LazyLoaded images
WP Rocket gives you the smart feature of LazyLoad for your images and iframes (including video). Those resources are loaded only when they have to be displayed on the screen of your visitor, which makes your site load much faster. Even though…
Find the right JavaScript files to exclude from minification
The Minify JavaScript files feature can be quite hard to troubleshoot, especially when you have a lot of files. However, sometimes it’s possible to identify and exclude the problematic files by checking the console errors. In this example, we refer…
Fix large cache folder size caused by dynamic inline JavaScript
If the cache/min folder is too big due to an unusually large number of JavaScript files it could cause problems: Takes up too much disk quota in your hosting account Too many files means that sometimes old ones will not…
Force page caching
Most caching plugins for WordPress use a de facto standard to exclude pages from being cached: the DONOTCACHEPAGE WordPress Core constant. If defined as true during a request, WP Rocket would not cache the page in question, but allow a regular database…
Force WebP replacement on more attributes
WP Rocket's WebP Compatibility looks for images in specific attributes to replace them with the WebP version. If you have an image found in an unsupported attribute, you can force the WebP replacement by using this helper plugin. 📝 Manual…