This version is old school.
Please find jQuery plugins on npm.
jQuery.bind-first
Tiny jQuery plugin for moving event handler to the beginning of the event queue so that this handler will be executed first, regardless of how many other handlers you had already attached.