News for hackers. Stuff that matters.

dominicglenn

Re:Always return on events is faster, but why? on Friday October 18, 2013 @05:49AM (#6570529)
I posted it on the page as well:

Doesn't just calling return from an event equate to returning boolean false, which means you are invoking the effects of preventDefault() and stopImmediatePropagation() thus explaining why with return it's faster as the event stops bubbling immediately?