jQuery still runs on a large share of the web, often inside WordPress themes, older admin panels and long-lived business apps. Browsers now provide most of what jQuery was created for, so removing it can cut page weight and make the code easier to maintain. But a careless migration breaks things in quiet ways. This course teaches a safe, incremental approach to modernising a real jQuery codebase.

What you'll learn

  • Auditing a codebase: where jQuery is used, which plugins depend on it and what can be removed first
  • Modern equivalents for selectors, traversal, classes, attributes and DOM creation
  • Events with addEventListener, event delegation, custom events and removing listeners
  • Replacing $.ajax and $.getJSON with fetch, async/await and AbortController
  • Replacing jQuery animations with CSS transitions and the Web Animations API
  • Finding modern replacements for common plugins: sliders, date pickers, modals and validation
  • Upgrading to jQuery 4 as a stepping stone where full removal must wait
  • Moving from global scripts to ES modules and a bundler such as Vite
  • Adding characterisation tests before changing behaviour
  • Handling jQuery inside WordPress and other CMSs without breaking other plugins

Who it's for

  • Developers who maintain older websites or internal apps built with jQuery
  • Agencies modernising client sites as part of performance or security work
  • Front-end developers who learned jQuery first and want to be fluent in modern browser APIs

Prerequisites

  • Working experience with jQuery
  • Basic modern JavaScript; Modern JavaScript Essentials fills any gaps
  • Access to a real or sample jQuery project to practise on

Outcomes

By the end of this course you will be able to:

  1. Plan a jQuery removal in stages, with a clear order and low risk.
  2. Rewrite jQuery code using modern DOM, event, fetch and animation APIs.
  3. Protect behaviour with tests so refactoring does not cause regressions.
  4. Measure the performance gain and explain it to stakeholders.

Projects you'll build

  • Legacy dashboard migration: a sample admin page with tabs, AJAX tables and form validation written in jQuery, rewritten module by module. It practises auditing, events, fetch and refactoring with tests.
  • Plugin replacement: swap a jQuery carousel and date picker for lighter modern alternatives or small custom components. It practises evaluating libraries, accessibility and CSS-based animation.
  • WordPress theme clean-up: remove theme-level jQuery dependencies from a child theme and load scripts as modules. It practises working safely inside a CMS and measuring the change.

Tools you'll use

jQuery 3.7 and 4 for comparison, modern browser APIs, Vite, Vitest and Playwright, Chrome DevTools Coverage and Performance panels, Lighthouse, and ESLint.

Course outline

ModuleTopic
1Why migrate, and when not to
2Auditing jQuery and plugin usage
3Characterisation tests before changes
4Selectors, traversal and DOM manipulation
5Events and delegation
6AJAX to fetch and async/await
7Animations with CSS and the Web Animations API
8Replacing common plugins
9jQuery 4 as an intermediate step
10Modules and bundling
11jQuery in WordPress and CMS themes
12Measuring results and finishing the migration

FAQ

Is jQuery bad?

No. It solved real problems and still works. The aim is to remove a dependency you may no longer need, not to rewrite working code for its own sake.

Should we rewrite the app in React instead?

Sometimes, but a rewrite is a bigger, riskier project. This course focuses on incremental modernisation. If a framework later makes sense, React for Beginners is a good start.

Will removing jQuery make my site faster?

Often a little, sometimes noticeably, depending on how it is loaded. We measure before and after rather than assume.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.