Allow the generation of Used CSS and Critical Path CSS in Cloudflare
This article contains information related to the known issues caused by Cloudflare's security options that affect the Remove Unused CSS and Load CSS Asynchronously features, when trying to generate the Used CSS and Critical Path CSS, respectively. Cloudflare Bot fight…
Change Load CSS Asynchronously sample URLs
The Critical Path CSS is generated by WP Rocket for the homepage and each post type and taxonomy archive page. We select the last post for each type of content. The last post may not be accessible in some cases,…
Conditionally Disable Remove Unused CSS
Sometimes you need to disable the Remove Unused CSS feature for groups of pages, based on their URLs slugs. For example, if you want to disable the optimization on all product pages which are using the following structure: https://www.example.com/products/wp-rocket-t-shirt/ You can use the string…
Database size increases with Remove Unused CSS
Remove Unused CSS stores some information in the database, and in some scenarios, it can grow quite large. There are two tables involved in database size issues when using Remove Unused CSS:Used CSS table Remove Unused CSS uses the wpr_rucss_used_css table…
Disable Remove Unused CSS for specific pages or posts
In some cases, you may need to disable the Remove Unused CSS feature on a specific page or group of pages. You have 2 options to achieve it: Using the WP Rocket Options meta box This is the simplest option…
Disable Remove Unused CSS or Load CSS Asynchronously on mobile
If the Remove Unused CSS or Load CSS Asynchronously features are causing layout issues on the mobile version of your site, you can disable this feature for mobile devices only while keeping it for the desktop version. You'll need to…
Exclude all CSS files in a folder / directory from Load CSS Asynchronously
In rare cases the option Load CSS Asynchronously may conflict with a set of files, specially when they are being dynamically generated by one of your plugins or your theme. If this option causes any problems, you may need to…
Exclude files from Load CSS Asynchronously
In some cases the option Load CSS Asynchronously may conflict with a specific file. If this option causes any problems, you may need to exclude a file from the process. You can do that by downloading, installing, and editing the…
Exclude uploaded Elementor CSS from Load CSS Asynchronously
In some cases the option Load CSS Asynchronously may conflict with files created dynamically by Elementor in the uploads/elementor/css folder. If that problem arises specific files can be excluded with the WP Rocket | Exclude Files from Async CSS helper…