In my project I have 104 addEventListener
calls attaching handlers to the mousedown
event.
So I decided to use variables for those event names, like:
var md = "mousedown";
element.addEventListener(md, function(){});
to reduce downloaded bytes.
Is it good practice? Did I get more performant code?