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.
posted 4 years ago
You are talking milliseconds of difference. If you need high performance in a game, closer is better. For a form, does not make a difference.