posted 5 years ago
When using delegated events and the on() function, is there any significant performance loss if the container element is something like the body element? I usually try and find the closest parent that I know will be on the page. My assumption is that the less jQuery has to navigate from container to handler, the better. But I really don't know that for sure.