Title: Javascript errors on page
Last modified: August 31, 2016

---

# Javascript errors on page

 *  Resolved [ezzabne](https://wordpress.org/support/users/ezzabne/)
 * (@ezzabne)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-page/)
 * HI, first time on here. I am developing a site and just noticed I am getting 
   JS errors on page.
    Uncaught ReferenceError: jQuery is not defined, and Uncaught
   ReferenceError: $ is not defined
 * The number of errors vary depending on the page you are on. The Home page & [http://it.dev.internet-thinking.com.au/contact/contact-form/](http://it.dev.internet-thinking.com.au/contact/contact-form/)
   seems to have the most erros. Both of these are using a Gravity Form on them.
   But errors do occur on all other pages.
 * From the web it seems that these may be related to the “enqueue” issue. The console
   references a file [http://it.dev.internet-thinking.com.au/wp-includes/js/wp-emoji-release.min.js?ver=4.4.2](http://it.dev.internet-thinking.com.au/wp-includes/js/wp-emoji-release.min.js?ver=4.4.2)
 * I have read the articles but I am still not sure how to rectify the issue. Sorry
   if this is basic but I cannot find a solution.
 * the site is [http://it.dev.internet-thinking.com.au](http://it.dev.internet-thinking.com.au)
 * If someone can point me in teh right direction I would appreciate it.
 * Thanks

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

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-page/#post-7085808)
 * Hi ezzabne!
 * More often than not the `jQuery is not defined` error is because the script is
   loading before the jQuery library has finished loading. The `$ is not defined`
   error is because WordPress run in `noConflict()` meaning that in order to use
   jQuery you would instead use `jQuery( '#post-13' )` instead `$( '#post-13' )`.
   Part of that reason is that there are other JavaScript libraries that use the`
   $` so it can create issues.
 * Best way to troubleshoot is by deactivating all your plugins to see if that clears
   it up. If it does not, use a core theme like Twenty Fifteen/Sixteen to see if
   that clears it up.
 *  [Susan Langenes](https://wordpress.org/support/users/susanlangenes/)
 * (@susanlangenes)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-page/#post-7085810)
 * I agree with Jose. At first glance to me it also looks like your theme is not
   loading jQuery at all, and there are other scripts that depend on it.
 * Make sure your theme’s functions.php file is enqueueing jQuery properly.
 *  Thread Starter [ezzabne](https://wordpress.org/support/users/ezzabne/)
 * (@ezzabne)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-page/#post-7085816)
 * Thanks Jose & Susan. I must have looked at for far too long yesterday. Fresh 
   eyes and your pointers helped.
 * Thanks
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-page/#post-7085821)
 * Awesome to see you were able to get it resolved! What was the underlying issue
   and how did you get it fixed if you don’t mind posting so others may benefit 
   from it as well. 😀

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

The topic ‘Javascript errors on page’ is closed to new replies.

## Tags

 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-page/#post-7085821)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
