Title: &#8220;Exclude Scripts&#8221; Not Working
Last modified: August 10, 2019

---

# “Exclude Scripts” Not Working

 *  Resolved [C13](https://wordpress.org/support/users/c13creative/)
 * (@c13creative)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/)
 * I have used Autoptimize on several previous site before with great success. However
   on this site, the excluded JS scripts are not being excluded. Here is exactly
   what I have in the exclude text box:
 * _wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, wp-content/
   plugins/modula-best-grid-gallery/, designesia.js_
 * The inclusion of the last three break the slider and the portfolio on the site.
   Anyone know why those are not excluded?
 * On a possibly related note, the site is hosted on Godaddy’s Managed WordPress
   plan, which includes its own caching. I tried removing the caching using [these directions](https://joscor.com/blog/remove-godaddys-wordpress-plugin/),
   but for some reason that left me with a persistent 1 day expiration date on all
   CSS and JS files. Those were removed after I reactivated the GoDaddy caching.
   Not sure if that is relevant.
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-scripts-not-working-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/#post-11819663)
 * Autopitimize seems not active now, but with those exclusion active untick the“
   minify excluded CSS/JS” misc. option maybe?
 *  Thread Starter [C13](https://wordpress.org/support/users/c13creative/)
 * (@c13creative)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/#post-11819670)
 * I tried that but no change. And it is active, or at least supposed to be: [http://loftstudiointeriors.com/wp-content/uploads/2019/08/Screenshot_2019-08-10-Autoptimize-Options-%E2%80%B9-LOFT-Studio-Interiors-%E2%80%94-WordPress.png](http://loftstudiointeriors.com/wp-content/uploads/2019/08/Screenshot_2019-08-10-Autoptimize-Options-%E2%80%B9-LOFT-Studio-Interiors-%E2%80%94-WordPress.png)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/#post-11819678)
 * Ah, a page cache thing, loading the page with a random querystring appended to
   the URL makes Autoptimize appear and the files are excluded correctly so it seems?
 * ![](https://i0.wp.com/pix.toile-libre.org/upload/original/1565423112.jpg)
 *  Thread Starter [C13](https://wordpress.org/support/users/c13creative/)
 * (@c13creative)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/#post-11819723)
 * Fixed it. Turns out I just needed to exclude _jpreLoader.js_. For some reason,
   all my other scripts were depending on that.
 * Thank you for the help!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/#post-11819727)
 * you’re welcome c13creative, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘“Exclude Scripts” Not Working’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/exclude-scripts-not-working-2/#post-11819727)
 * Status: resolved