How To Upgrade JQuery To The Latest Version In WordPress

Ahh, JQuery one of the most used and most useful libraries in the WordPress ecosystem. It would be quiet difficult to imagine WordPress without JQuery. That being said, WordPress doesn’t use the latest version of JQuery and this can be both a good and bad thing.

JQuery is basically a JS library that makes it easier to do other things with JS (very high-level sentence there). But on a more serious note, WordPress by default does not include the latest version of JQuery and there are in fact there are three branches of JQuery core.

There is the branch WordPress uses the 1.x branch  (1.12.4 is the latest and shipped in core), the 2.x branch and the 3.x branch.

Enter JQuery Updater

JQuery Updater is a WordPress plugin that does simply that. It loads the latest version of JQuery & JQuery Migrate. If you’re like me, if you turn this on, you will likely break your website! No seriously, turning this on might render much of the functionality of your website inoperable. This is mostly due to developers not writing JavaScript that is meant to run on JQuery 3.0. Why would they though when WordPress Core uses the 1.x branch?

However, on incredibly simple sites with basic theme installs like 2017, it actually managed to work (for the most part). There was some performance benefit gained by swapping to the newer version too. Not enough to make 29% of the internet swap to it in an update, but there was some gain.

However, if you like to be on the bleeding edge or want to test your theme/plugin in a WordPress environment JQuery Update makes this process as simple as activating a plugin.

By | 2018-02-14T20:41:07+00:00 February 14th, 2018|Tutorials|1 Comment

One Comment

  1. Volnus February 14, 2018 at 8:40 pm - Reply

    For those of you now, appearing the Drupal Image was uploaded in a funny mishap during editing lol.

Leave A Comment