Title: jQuery is not defined &#8211; javascript error
Last modified: August 22, 2016

---

# jQuery is not defined – javascript error

 *  [juniorbra](https://wordpress.org/support/users/juniorbra/)
 * (@juniorbra)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-is-not-defined-javascript-error/)
 * Hi,
 * My site is showing several javascript errors, specially “jQuery is not defined”
   as you can see in the new relic print [http://goo.gl/pJGvx9](http://goo.gl/pJGvx9)
   and in the browser console report [http://goo.gl/Pjckpb](http://goo.gl/Pjckpb)
 * Basically I ran google page insights and added all the javascript and CSS blocking
   codes to Minify section, as you can see here [http://goo.gl/ZRWCi4](http://goo.gl/ZRWCi4)
   and here [http://goo.gl/0ZKOYq](http://goo.gl/0ZKOYq) respectively.
 * Is there something I can do to fix these javascript errors?
 * Thanks!
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

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

 *  Thread Starter [juniorbra](https://wordpress.org/support/users/juniorbra/)
 * (@juniorbra)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-is-not-defined-javascript-error/#post-5349666)
 * Update: After disabling minify JS in W3TC and enabling it in Cloudflare the number
   of errors dropped a lot [http://goo.gl/6QdnXK](http://goo.gl/6QdnXK) . So I a
   using W3TC to minify HTML and CSS, and Cloudflare to minify JS. The downside 
   is losing 1%-2% grade in Pagespeed and YSlow 🙁
 *  [Ron Vis](https://wordpress.org/support/users/ronvis/)
 * (@ronvis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-is-not-defined-javascript-error/#post-5349761)
 * In W3TC, make sure jQuery is first in the list of JS files to be minified.
 *  Thread Starter [juniorbra](https://wordpress.org/support/users/juniorbra/)
 * (@juniorbra)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-is-not-defined-javascript-error/#post-5349762)
 * Yes, I guess it is 🙁
 * This is the order I am using:
 * [http://mysite.com.br/wp-includes/js/jquery/jquery.js](http://mysite.com.br/wp-includes/js/jquery/jquery.js)
   
   [http://mysite.com.br/wp-includes/js/jquery/jquery-migrate.min.js](http://mysite.com.br/wp-includes/js/jquery/jquery-migrate.min.js)
   [http://mysite.com.br/wp-content/plugins/optin-monster/assets/js/api.js](http://mysite.com.br/wp-content/plugins/optin-monster/assets/js/api.js)
   [http://mysite.com.br/wp-content/plugins/mashsharer/assets/js/mashsb.min.js](http://mysite.com.br/wp-content/plugins/mashsharer/assets/js/mashsb.min.js)
   [http://mysite.com.br/wp-content/plugins/mashshare-google-analytics/assets/js/mashga.min.js](http://mysite.com.br/wp-content/plugins/mashshare-google-analytics/assets/js/mashga.min.js)
   [http://mysite.com.br/wp-content/plugins/mashshare-networks/assets/js/mashnet.min.js](http://mysite.com.br/wp-content/plugins/mashshare-networks/assets/js/mashnet.min.js)
 *  [AJ @ WpFASTER.org](https://wordpress.org/support/users/ajm_1976/)
 * (@ajm_1976)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-is-not-defined-javascript-error/#post-5349764)
 * Have you tried:
    1.) Combining only? 2.) Combine only + Render blocking (default)
   i.e. no async? 3.) Combine + Minify + Render blocking (default) i.e. no async?
   4.) Combining only `jquery` files and placing them in the `<head>` and remainder
   at the opening `<body>`? Or (and better yet) at the `</body>`? 5.) Loading `jquery`
   from Google libraries instead? 6.) CloudFlare’s Rocket Loader? (isn’t recognized
   as non-blocking by Google bot but does, in fact, work for the end-user on Chrome
   and Firefox).
 * …I promise, there’s a solution and you almost certainly can find it right within
   W3TC. It might take a lot of A/B testing and running through all logical permutations—
   but it _is_ there.
 * You should also try disabling plugins to see which ones, if any, aren’t playing
   nice with W3TC’s minify directives.
 * Best,
    AJ
 * P.s. Google killed your goo.gl links.

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

The topic ‘jQuery is not defined – javascript error’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)
 * [jQuery is not defined](https://wordpress.org/support/topic-tag/jquery-is-not-defined/)
 * [W3TC](https://wordpress.org/support/topic-tag/w3tc/)

 * 4 replies
 * 3 participants
 * Last reply from: [AJ @ WpFASTER.org](https://wordpress.org/support/users/ajm_1976/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-is-not-defined-javascript-error/#post-5349764)
 * Status: not resolved