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
$.ajaxand$.getJSONwithfetch,async/awaitandAbortController - 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:
- Plan a jQuery removal in stages, with a clear order and low risk.
- Rewrite jQuery code using modern DOM, event, fetch and animation APIs.
- Protect behaviour with tests so refactoring does not cause regressions.
- 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,
fetchand 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
| Module | Topic |
|---|---|
| 1 | Why migrate, and when not to |
| 2 | Auditing jQuery and plugin usage |
| 3 | Characterisation tests before changes |
| 4 | Selectors, traversal and DOM manipulation |
| 5 | Events and delegation |
| 6 | AJAX to fetch and async/await |
| 7 | Animations with CSS and the Web Animations API |
| 8 | Replacing common plugins |
| 9 | jQuery 4 as an intermediate step |
| 10 | Modules and bundling |
| 11 | jQuery in WordPress and CMS themes |
| 12 | Measuring 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.