Home & blog

Tag: delegation

Event delegation in JavaScript

1 Nov 2020 delegation

Event delegation is a great pattern to learn in JavaScript - yet it's still alien to many beginner/intermediate developers. Let's see how it works, and why you need to be using it. We'll even make our own jQuery-style on() method.