I have a very dynamic web application, elements are created and destroyed constantly.
In order to make clicks and other events stay, I'm attaching all of these events to $(document), like this example:
$(document).on('click', '.tabs li a', function(event) {
});
Like I said, almost all of these events are being attached to $(document).. are there any drawbacks to that? Where are these event handlers stored? Will it make my application slower?