title: Bind to ready and resize at same time using jQuery .on()
body: <p>This works for running the same code on both ready and resize:</p>
  
  <pre><code>$(document).ready(function() {
  
      $(window).resize(function() {
  
           // Stuff in here happens on ready and resize.
  
      }).resize(); // Trigger resize handlers.       
  
  });//ready
  </code></pre>
  
  <p>How would you accomplish the same result using <a href="http://api.jquery.com/on/" rel="noreferrer">jQuery.on()</a> ?</p>