improvement in event polution and event prevention. its generraly good practice to call event.preventDefault(); on the beggining of the function in case there are errors or delays in the function