title: Ensure jQuery event handler execution order
body: <p>I <em>think</em> that event handlers are processed in the order that they are registered. (Is that correct?) If that is the case then if I attach an event handler at the beginning of my script, can I be absolutely certain that it will fire before subsequent handlers attached to the same event? Also do event namespaces have any effect on this? Are event handlers fired in series (one finishes before the next) or in parallel?</p>
  
  <p>I want to do this because my script relies on the viewport size, which changes on the resize event, and I need to constantly look for it. Rather than calling <code>$(window).width()</code> repeatedly in each of my handler functions, I'd like to put a handler at the top of my script that saves <code>$(window).width()</code> to an object property on each resize. Then in subsequent handlers I can access the property and be certain that it is the most recent measurement.</p>
  
  <p>I know I could create a custom event that triggers as soon as the calculation is done and attach subsequent handlers to the custom event. But, I'd don't want to do that because I need to maintain interoperability with plugins that come after mine that may also be attaching to the resize event.</p>