I have an event handler wired to a variety of events to ensure that it gets fired under a variety of circumstances.
var allChangeEvents = "focus blur select change click dblclick mousedown mouseup keypress keydown keyup";
$("#myTextbox").on(allChangeEvents, function() {
console.log("Event fired.");
});
You'll notice that interacting regularly with <input type="text" id="myTextbox" />
(clicking, tapping, focusing, etc.) will actually cause the event to be fired multiple times. If the code being run becomes very large, then this could hurt performance. Is there any way for me to prevent the event from being fired so many times without having to remove a ton of my event types?