Code24Lab
Web Development Advanced

jQuery Mastery: Plugins, Performance & Migrating to Modern JS

Audit, speed up and modernise a fictional storefront's legacy jQuery: selector cost, caching, delegation, namespaces, plugin authoring, Deferreds, effects, throttling and a measured move to vanilla JavaScript, with every answer checked as you go.

22 lessons 22 labs Certificate

  • One-time payment
  • Instant access right after payment
  • Secure checkout with Stripe

About this course

This advanced course works through the legacy jQuery code of a fictional outdoor storefront. In 22 hands-on labs you read real code and compute what it does: how many elements a selector examines, how many DOM lookups caching saves, which handlers survive a namespaced .off(), what a promise chain logs after a thrown error, and how many requests a debounced search sends. You write chainable $.fn plugins with defaults and one instance per element, then plan the move to modern JavaScript: querySelectorAll, classList, fetch with correct error handling, jQuery Migrate findings and a measured payload budget. A weighted scorecard and a final exam close the course, and the first lesson is free.

Lessons

  1. Audit a Legacy jQuery Codebase Before You Touch ItLabFree
  2. The jQuery Object: Collections, Getters, Setters and TruthinessLab Locked
  3. Selector Performance: Right-to-Left Matching and jQuery-Only ExtensionsLab Locked
  4. Cache Your Selections: Counting DOM Lookups in LoopsLab Locked
  5. Batch DOM Writes: Layout Thrashing and a Single .append()Lab Locked
  6. Event Delegation: One Handler for Rows That Don't Exist YetLab Locked
  7. Event Namespaces: Unbinding Exactly What You OwnLab Locked
  8. Bubbling, return false and stopImmediatePropagationLab Locked
  9. $.extend: Defaults, Options and the Shallow-Copy TrapLab Locked
  10. $.fn Plugins: the IIFE, this.each() and Returning thisLab Locked
  11. .data() vs data-* Attributes: Caching and Type ConversionLab Locked
  12. Stateful Plugins: One Instance per Element, Methods and destroyLab Locked
  13. Deferreds I: $.when, Parallel Requests and the Critical PathLab Locked
  14. Deferreds II: then vs done, Thrown Errors and RecoveryLab Locked
  15. Ajax Resilience: Timeouts, Retries and Exponential BackoffLab Locked
  16. The Effects Queue: Timelines, .delay() and .stop()Lab Locked
  17. Throttle and Debounce Scroll, Resize and Input HandlersLab Locked
  18. jQuery to Vanilla I: Selecting, Classes, Attributes and TraversalLab Locked
  19. jQuery to Vanilla II: $.ajax vs fetch Error SemanticsLab Locked
  20. Reading Legacy Code: Deprecated APIs and jQuery MigrateLab Locked
  21. Measuring the Win: Payload, Download Time and Monthly TransferLab Locked
  22. Capstone: The Migration ScorecardLab Locked