HNHacker News
TopNewBestAskShowJobs

dominicglenn

1 karma · joined October 18, 2013

submissionscomments
dominicglenn··on Always return on events is faster, but why?
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?