Code24Lab

Event Delegation: One Handler for Rows That Don't Exist Yet

Lesson 6 of 22 Lab ๐Ÿ”’ Locked

Lessons in this course

  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