Ensuring Single Instance Of Event Handlers

I recently had a performance issue when an AJAX control updated the DOM and the script added event bindings to the elements. However, some elements were unchanged and the events were still added again, causing multiple events and performance degradation within the browser. The existing fix was: Sure, you can do that. An easier way is to ensure that all current events are removed on the element and then adding it again.

read more