GOV.UK drops jQuery from their front end

published on 2022/05/20

The web is better because of jQuery—not just because it has such incredible utility, but because its ubiquity led to making what it provided part of the web platform itself. Nowadays, we can do just about anything jQuery can do in vanilla JavaScript:

  • We can select elements using a CSS selector syntax with querySelector and querySelectorAll.
  • We can add, remove, and toggle classes on elements with the classList API.
  • We can attach event handlers to DOM elements and the window using addEventListener.
  • And so, so, much more.


jQuery going away is a success of the Web standardization effort.