Optimization Features
14 results
WP Rocket features info and troubleshooting.
Delay JavaScript execution
Still seeing the Reduce unused JavaScript audit in PageSpeed? You may be excluding too many scripts from being delayed, please consider reducing the exclusions to prioritize performance as per this. Delay JavaScript execution is the most powerful JavaScript optimization WP Rocket…
Exclude files from Load JavaScript Deferred
In some cases, the option Load JavaScript deferred may conflict with a specific file. If this option causes any problems, you may need to exclude a file from the process. Exclude files and domains You can use the field in the…
Exclude scripts from Delay JavaScript Execution only at some URLs
This helper will allow you to exclude JavaScript files from Delay JavaScript Execution option only on specific pages instead of excluding them globally. This can be useful in some cases where you can delay JavaScript files globally, but you need…
Exclude scripts from Load JavaScript Deferred for all pages or specific URLs
This helper will by default allow you to apply JavaScript files exclusions for Load JavaScript deferred to all pages if no specific page(s) is specified, or apply exclusions only to specified pages. This can be useful in some cases where…
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…
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…
General dependencies exclusions for Delay JavaScript execution
This article contains a list of general dependencies exclusions to be used in cases when the Delay JavaScript execution feature triggers any of the related JavaScript errors.jQuery is not defined /jquery(-migrate)?-?([0-9.]+)?(.min|.slim|.slim.min)?.js(?(.*))?( |'|"|>|$) f.hoverIntent is not a function /wp-includes/js/hoverIntent.min.js imagesLoaded is not…