The performance gain is huge,because it dynamically binds listeners to every child elements through single parent.there are so many edge cases to consider before to use
- Delegate too many events on parent can cause inefficency and complex logic
- it only works with events like click and does not work with events like onblur,onfocus,mousenter etc.
- you need to optimize the condition logic to avoid triggering unnecessary execution