Title: Uncaught ReferenceError: jQuery is not defined
Last modified: July 22, 2020

---

# Uncaught ReferenceError: jQuery is not defined

 *  Resolved [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/)
 * hi, i am having these issues when I inspect my site in google search console.
   it gives me following errors that:
    Uncaught ReferenceError: jQuery is not defined
   [https://www.wemoveautoz.ca/wp-content/cache/autoptimize/js/autoptimize_single_dad8b8c214b2f2e2b4db0f0772a33b80.js?ver=5.4.2:1:0](https://www.wemoveautoz.ca/wp-content/cache/autoptimize/js/autoptimize_single_dad8b8c214b2f2e2b4db0f0772a33b80.js?ver=5.4.2:1:0)
   eval :1:214656 [https://www.wemoveautoz.ca/wp-content/cache/autoptimize/js/autoptimize_single_5c0abc6fa117c07b24c6c5eba912dba8.js?ver=6.11.1:1:1](https://www.wemoveautoz.ca/wp-content/cache/autoptimize/js/autoptimize_single_5c0abc6fa117c07b24c6c5eba912dba8.js?ver=6.11.1:1:1)
   i don’t know what is it? could you help me in solving this?

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157254)
 * make sure js/jquery/jquery.js is excluded from JS optimization and that jQuery
   is not asynced/ deferred either.
 * hope this helps,
    frank
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157350)
 * Hi, i Remove that part (js/jquery/jquery.js)from the exclude scripts from autoptimze
   option.
    but i think still issues is there when i again inspect url from google
   search console.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157354)
 * but you should _not_ remove it there, you need to keep it excluded (and not asynced/
   deferred) 🙂
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157359)
 * Hi sorry for the misunderstanding.
    please let me know How to defer that ??
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157367)
 * no, you should not defer it either, jQuery often cannot be optimized properly
   without something breaking .. :-/
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157378)
 * Oh i see,
    so what should i do then, cause I am seeing many error in search console
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157393)
 * `<script type='text/javascript' defer='defer' src='https://www.wemoveautoz.ca/
   wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>`
 * you are using Async Javascript, you’ll have to configure it to exclude jQuery
   from being deferred.
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157412)
 * Thank you so much. I found out the issue and just solve it.
    I am using another
   plugin name async javascript, and in this plugin setting I just excluded Jquery
   from being deferred.
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13157488)
 * Thnks for your help.
    here are other error that I face while testing my site 
   with google page speed insight [https://www.wemoveautoz.ca/wp-content/cache/autoptimize/css/autoptimize_single_cba4f100f3bba7094857f196ab977599.css?ver=5.4.2](https://www.wemoveautoz.ca/wp-content/cache/autoptimize/css/autoptimize_single_cba4f100f3bba7094857f196ab977599.css?ver=5.4.2)
   [https://www.wemoveautoz.ca/wp-content/cache/autoptimize/css/autoptimize_single_cba4f100f3bba7094857f196ab977599.css?ver=5.4.2](https://www.wemoveautoz.ca/wp-content/cache/autoptimize/css/autoptimize_single_cba4f100f3bba7094857f196ab977599.css?ver=5.4.2)
   there are many other issue related to that, how to solve this??
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13158545)
 * what is the pagespeed-recommendation for those files?
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13161077)
 * hi,
    Please check that link.
 * > [View post on imgur.com](https://imgur.com/jWRcp86)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13161764)
 * not 100% clear on the screenshot, but I guess this is about “render-blocking 
   resources”. for that give “inline & defer CSS” a try, more info in [the AO FAQ](https://wordpress.org/plugins/autoptimize/#faq).
 *  Thread Starter [farihaz](https://wordpress.org/support/users/farihaz/)
 * (@farihaz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13162171)
 * Hi, yes you are right, I have seen this issue under render-blocking resources..
   
   I Tried to tick the inline and defer CSS option and then add critical CSS into
   the box but nothing happened>.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-27/#post-13162183)
 * don’t see any inline or deferred CSS in your site’s HTML source at the moment,
   double-check the settings and if those are OK then maybe clear all W3 Total Cache
   caches (page cache, object cache, database cache)?

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

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

 * 14 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/uncaught-referenceerror-jquery-is-not-defined-27/#post-13162183)
 * Status: resolved