Title: JQuery Error
Last modified: March 6, 2019

---

# JQuery Error

 *  [A WP Life](https://wordpress.org/support/users/awordpresslife/)
 * (@awordpresslife)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/)
 * I am using a plugin with the theme and getting error Uncaught ReferenceError:
   jQuery is not defined but in the page source, jquery is loaded then why showing
   the error?
 * Thanks!

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11282623)
 * This theme does not use jQuery, so the fault must be with your plugin.
 *  Thread Starter [A WP Life](https://wordpress.org/support/users/awordpresslife/)
 * (@awordpresslife)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11284935)
 * But we enqueue the inbuilt jquery.
 *     ```
       //wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
       wp_enqueue_script( 'jquery' );
       ```
   
 * Thanks
    -  This reply was modified 7 years, 3 months ago by [A WP Life](https://wordpress.org/support/users/awordpresslife/).
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11286047)
 * Perhaps your plugin uses jQuery before it is output on the page – but that would
   be a plugin issue.
 *  Thread Starter [A WP Life](https://wordpress.org/support/users/awordpresslife/)
 * (@awordpresslife)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11286467)
 * The plugin enqueuing the js in the plugin’s shortcode file code.
 * How can I determine like when will the plugin’s shortcode enqueue js on the page
   load?
 * Can you guide us? Do I need some hook/action to load jquery before page output?
 * Thanks for the reply.
    -  This reply was modified 7 years, 3 months ago by [A WP Life](https://wordpress.org/support/users/awordpresslife/).
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11286479)
 * Look at the page source – View the Webpage, right click and press ‘view source’(
   or a similarly named option).
 * Search for where jQuery is being enqueued and note down its line number.
    Then
   search for where your plugin JS is being enqueued.
 * Your plugin JS should be after the jQuery script in the page source.
 * –
    The other time I’ve seen a similar error to what you’ve described is when 
   the plugin loads its own version of jQuery (which is bad) and then you end up
   with 2 instances of jQuery.
 *  Thread Starter [A WP Life](https://wordpress.org/support/users/awordpresslife/)
 * (@awordpresslife)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11286502)
 * Thanks and perfect trick to track. Will check and get back to you if need any
   help.
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11288491)
 * The script that uses jQuery should be enqueued with `array('jquery')` as the 
   dependency parameter. That way they will be output in the correct order.

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

The topic ‘JQuery Error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentynineteen/3.3/screenshot.
   png)
 * Twenty Nineteen
 * [Support Threads](https://wordpress.org/support/theme/twentynineteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentynineteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentynineteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentynineteen/reviews/)

## Tags

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

 * 7 replies
 * 3 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-70/#post-11288491)
 * Status: not resolved