Title: Register, not enqueue
Last modified: May 31, 2019

---

# Register, not enqueue

 *  Resolved [Ramanan](https://wordpress.org/support/users/superpoincare/)
 * (@superpoincare)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/register-not-enqueue/)
 * Not all pages might need jQuery, so it’s best to just deregister the old version
   and register the new version (and not enqueue).
 * Anything which declares jQuery as a dependency will automatically enqueue jQuery.
 * This way on pages where scripts don’t need jQuery won’t load it.
 * An example is a plugin script which does something on comments. The home page
   doesn’t have a comment box and won’t need it.
 * But by enqueuing, you are forcing it where it’s not needed.

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

 *  Plugin Author [Ramoonus](https://wordpress.org/support/users/ramoonus/)
 * (@ramoonus)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/register-not-enqueue/#post-11763696)
 * I agree and in the next release I will implement this
 *  [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/register-not-enqueue/#post-11850755)
 * This must be the reason that jQuery Migrate is not enqueued. But this causes 
   issues, as it’s not added when jQuery is being added.
 *  Plugin Author [Ramoonus](https://wordpress.org/support/users/ramoonus/)
 * (@ramoonus)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/register-not-enqueue/#post-11853850)
 * guess so
    will fix it in the next version

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

The topic ‘Register, not enqueue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-updater.svg)
 * [jQuery Updater](https://wordpress.org/plugins/jquery-updater/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-updater/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-updater/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-updater/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-updater/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-updater/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Ramoonus](https://wordpress.org/support/users/ramoonus/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/register-not-enqueue/#post-11853850)
 * Status: resolved