Title: How is jQuery inserted/updated?
Last modified: November 12, 2016

---

# How is jQuery inserted/updated?

 *  [Revived](https://wordpress.org/support/users/revived/)
 * (@revived)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/how-is-jquery-insertedupdated/)
 * I cannot figure out how jQuery is inserted into the head section of my site. 
   Is it likely that one of my plugins are doing so? If that’s the case, then how
   would subsequent plugins detect that it’ already being called?
 * Secondly, how do I know that it’s being updated? I would rather control it in
   my child theme’s header.php

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 7 months ago](https://wordpress.org/support/topic/how-is-jquery-insertedupdated/#post-8427451)
 * If the code is done properly, jQuery is inserted via wp_enqueue_script. Subsequent
   properly written plugins and code will not load extra copies. jQuery is shipped
   with WordPress to ensure that a consistent version is available.
 * See [https://developer.wordpress.org/reference/functions/wp_enqueue_script/](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
 *  Thread Starter [Revived](https://wordpress.org/support/users/revived/)
 * (@revived)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/how-is-jquery-insertedupdated/#post-8427484)
 * So jQuery is part of the WP core files and not something added by my theme (Responsive)?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 7 months ago](https://wordpress.org/support/topic/how-is-jquery-insertedupdated/#post-8427497)
 * Your theme, if properly written, does something like
 * wp_enqueue_script( ‘jquery’ );
 * to add the main jQuery code.
 * I say “properly written” because one could grab jQuery from a number of places
   and load it in many different ways. If you get your theme from a place like wordpress.
   org/themes, it will do it the proper way.
 * So, what are YOU trying to accomplish in your child theme?
 * If you’re loading a script that relies on jQuery, you just have to declare ‘jquery’
   in your array of dependencies when you load your own scripts via wp_enqueue_script.
    -  This reply was modified 9 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

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

The topic ‘How is jQuery inserted/updated?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/how-is-jquery-insertedupdated/#post-8427497)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
