Title: &#8220;Uncaught ReferenceError: jQuery is not defined&#8221; error
Last modified: September 27, 2017

---

# “Uncaught ReferenceError: jQuery is not defined” error

 *  Resolved [miculgigant](https://wordpress.org/support/users/miculgigant/)
 * (@miculgigant)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error/)
 * Hello,
 * when activating the Optimize JavaScript Code option, I keep getting the following
   error:
    “Uncaught ReferenceError: jQuery is not defined”
 * I have excluded js/jquery/jquery.js from Autoptimize, but I still get this error.
   As a test I have also exlucluded all .js files and/or removed most of the modules,
   but still got the same error
 * Can you please advice or point me in the right direction, please
 * Thank you,
    Catalin Vulcan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-referenceerror-jquery-is-not-defined-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error/#post-9534971)
 * afternoon Catalin;
    you’re running a plugin (wp rocket?) that is changing the
   name of the js (and css) files. in this case jquery is loaded from `wp-content/
   cache/busting/1/wp-includes-js-jquery-jquery-1.12.4.js`, so you’ll have either
   disable that feature in that other plugin OR tell AO to exclude `wp-includes-
   js-jquery-jquery-1.12.4.js` (which you might have to tweak when the version string
   in there changes).
 * hope this helps,
    frank
 *  [webworks](https://wordpress.org/support/users/webworks/)
 * (@webworks)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error/#post-9962720)
 * Hi Frank! How are you? I was just searching for the same error, but I’m not sure*
   where* the conflict source stems from.
 * We are getting the same error: Uncaught ReferenceError: jQuery is not defined
 * Can you spot what the issue is?
    It’s rather urgent because it’s affecting *all*
   forms.
 * [https://www.multifamilypro.com/brainstorming-sessions/call-facilitators-speakers/](https://www.multifamilypro.com/brainstorming-sessions/call-facilitators-speakers/)
 * Heather For Multifamilypro
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error/#post-9962887)
 * Hey Heather 🙂
 * Adding `js/jquery/jquery.js` to Autoptimize’s comma-separated JavaScript Optimization
   exclusion list should fix the issue (be sure to clear WP Rocket’s cache).
 * hope this helps,
    frank
 *  [webworks](https://wordpress.org/support/users/webworks/)
 * (@webworks)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error/#post-9962920)
 * Thanks for your prompt response!
 * Have a great weekend 🙂

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

The topic ‘“Uncaught ReferenceError: jQuery is not defined” error’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [webworks](https://wordpress.org/support/users/webworks/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error/#post-9962920)
 * Status: resolved