Articles on: Technical Support

Troubleshooting Critical CSS Not Generating (Pages Not Optimized)

Troubleshooting: Critical CSS Not Generating



If you're experiencing issues with the generation of Critical CSS on your website, follow these troubleshooting steps to identify and resolve common obstacles.




Check for Bot Protection, Security Plugins, and Firewalls



Critical CSS generation might be blocked by security measures on your server or within your application. Ensure these features are not interfering with the process:

- Bot Protection: Some services may mistake automated processes for malicious activity. Verify that your bot protection settings allow for Critical CSS tools to operate.

- Security Plugins: Check any security plugins active on your site. You might need to adjust their settings or temporarily disable them to test if they are causing issues.

- Firewalls: Server or application firewalls can block requests from the Critical CSS generation service. Ensure that your firewall rules permit these requests.

Ensure No Interference from Other Performance Plugins



Performance optimization plugins can sometimes conflict with the generation of Critical CSS by modifying CSS or JS files prematurely. Confirm that the following types of plugins are configured correctly or temporarily disable them to diagnose the issue:

- Caching Plugins: Plugins like Litespeed, WP Rocket, W3 Total Cache, etc., should be configured not modify CSS or JavaScript if you're using our script optimizations.

- Minification/Concatenation: Tools that minify or concatenate CSS/JS might interfere with the process. Ensure these settings are adjusted or disabled during Critical CSS creation.

- Other Optimization Plugins: Check for any other plugins that optimize performance (e.g., LiteSpeed Cache) and ensure they are not altering CSS or JS in a way that affects Critical CSS generation.

Additional Tips



By following these steps, you should be able to diagnose and resolve most issues related to Critical CSS not generating properly. If problems persist, feel free to reach out below and we'll be happy to help!

Updated on: 04/23/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!