WordPress WP Rocket Configuration

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:

  1. Access WP Rocket Settings:

    • From your WordPress dashboard, navigate to Settings ➡️ WP Rocket.

  2. Go to the File Optimization tab.

  3. Exclude Nitro Snippet JS:

    • Under JavaScript Files, find the Excluded JavaScript Files section.

    • Add plugin.nytsys.com to the exclusion list.

    • Info
      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.

  4. Save the Changes.

  5. 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.