WordPress Autoptimize Configuration

WordPress Autoptimize Configuration

To prevent Autoptimize from minifying the JS snippet, take the following action:

Step 1: Open Autoptimize Settings


  1. Log in to your WordPress dashboard.

  2. Go to Settings ➡️ Autoptimize.

Step 2: Exclude the JavaScript Files

  1. Click on the "JS, CSS & HTML" tab.

  2. Scroll down to "Exclude scripts from Autoptimize".

  3. Add the JS snippet: plugin.nytsys.com

Step 3: Save and Clear Cache

  1. Click "Save Changes and Empty Cache".

  2. To clear the Autoptimize cache, hover over "Autoptimize" in the admin bar and click "Clear CSS/JS Cache".


Step 4: Preload the Cache

  1. Navigate to WP-Optimize ➡️Cache ➡️Preload

  2. Click the “Run now” button.

  3. Save the Changes.

It is important to clear and preload the cache, it will make the website much faster for the visitors. 

The specified JavaScript snippet will now be excluded from minification by Autoptimize. dasdas