Title: Excluding Script
Last modified: June 23, 2020

---

# Excluding Script

 *  Resolved [elffii](https://wordpress.org/support/users/elffii/)
 * (@elffii)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/)
 * Hello,
    I have a problem with Autoptimize, in fact, it causes problem with this
   page (where tabs are supposed to appear on “Carte”, Information and Réservation”,
   and Les animaux”, I have tried to exclude the two plugins concerned with the 
   function wp-content/plugins/<insert-culprit-plugin-directory-here>/, but it does
   not work, even after clearing the cache. I do know that the problem comes from
   Javascript optimization, as when I disable it, everything works well. I have 
   also disable minimisation for excluded files. How can I solve this problem ? 
   Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexcluding-script-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13023142)
 * Hi elffii; what JS errors do you see on the browser console when JS is optimized?
 *  Thread Starter [elffii](https://wordpress.org/support/users/elffii/)
 * (@elffii)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13023263)
 * I dot really know, as I see different errors, but I am not so expert in Javascript
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13023662)
 * hmm, I’m seeing “jQuery is not defined” errors even now. try disabling Async 
   Javascript and test again with JS optimized? The problem might well be that you’re
   asyncing jQuery here.
 *  Thread Starter [elffii](https://wordpress.org/support/users/elffii/)
 * (@elffii)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13023995)
 * I have tried to use the jquery option in Async plugin, and to change for defer,
   and for exclude, but it did not change anything,I do not think that it comes 
   from this plugin, because I tried to disable it, and it did not change anything.
   It works again when I disable Javascript Optimization
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13024363)
 * the fact I did see “jQuery is not defined” errors on the browser console does
   indicate a problem, even if things visually look OK. the best/ safest way forward
   would be to ensure AsyncJS is off for now, to enable “optimize/ aggregate JS”
   and then to copy paste all JS errors on the browser console here so I can review?
 *  Thread Starter [elffii](https://wordpress.org/support/users/elffii/)
 * (@elffii)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13024411)
 * I have change the plugin setting in Async, and it is now working again ! Thanks
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13024925)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

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

The topic ‘Excluding Script’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-2/#post-13024925)
 * Status: resolved