by donoftime · 2y ago · 0 comments
Registering thousands of event handlers on one screen can have performance impact, and is generally why registering them on individual elements becomes a problem for an interactive page. Registering on a parent element can provide the same interactivity with only a single handler thanks to event bubbling.
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Bu...