title: JavaScript window resize event
body: <p>How can I hook into a browser window resize event?</p>
  
  <p>There's <a href="https://stackoverflow.com/questions/599288/cross-browser-window-resize-event-javascript-jquery">a jQuery way of listening for resize events</a> but I would prefer not to bring it into my project for just this one requirement.</p>