WordPress WP Rocket Configuration
In some cases, the Nitro Snippet JS may not function correctly due to secondary processing by third-party speed and optimization plugins, such as WP Rocket. To ensure Nitro Snippet JS works properly, you should configure WP Rocket to exclude its processing.
Follow the steps below to configure WP Rocket to exclude the Nitro Snippet:
Access WP Rocket Settings:

Go to the File Optimization tab.

Exclude Nitro Snippet JS:

Under JavaScript Files, find the Excluded JavaScript Files section.
Add plugin.nytsys.com to the exclusion list.

If you have inserted the snippet code using Google Tag Manager (GTM), check the box in One-click exclusions for GTM. The detailed guide can be found
here.
Save the Changes.
Clear and preload the Cache

It is important to clear and preload the cache, it will make the website much faster for the visitors.
By following these steps, WP Rocket will no longer process the Nitro Snippet JS, allowing it to function correctly on your WordPress site.
Submit a Ticket
Related Articles
WordPress WP Compress Configuration
If you need to exclude specific URIs from being cached by WP Compress in WordPress, follow these easy steps: Access Advanced Settings Access your WP Compress dashboard. Navigate to the Advanced Settings section. Go to Other Optimizations Scroll down ...
WordPress WP Fastest Cache Configuration
If you need to exclude specific URIs from being cached by WP Fastest Cache in WordPress, follow these simple steps: Step 1: Access WP Fastest Cache Settings Log in to WordPress: Start by logging into your WordPress admin dashboard. Navigate to WP ...
WordPress WP Super Cache Configuration
If you need to exclude specific URIs from being cached by WP Super Cache in WordPress, follow these simple steps: Step 1: Access WP Super Cache Settings Log in to WordPress: Begin by logging into your WordPress admin dashboard. Navigate to WP Super ...
WordPress WP-Optimize - Clean, Compress, Cache Configuration
If you need to exclude specific URIs from being cached by WP-Optimize - Clean, Compress, Cache in WordPress, follow these simple steps: Step 1: Access WP-Optimize Cache Settings Log in to WordPress: Begin by logging into your WordPress admin ...
WordPress Autoptimize Configuration
To prevent Autoptimize from minifying the JS snippet, take the following action: Step 1: Open Autoptimize Settings Log in to your WordPress dashboard. Go to Settings ➡️ Autoptimize. Step 2: Exclude the JavaScript Files Click on the "JS, CSS & HTML" ...