title: jQuery orientationchange DOM not ready (iPhone 5)
body: <p>When an orientation change fires I need to recalculate width of a specific element based on the width of other responsive elements of the page.</p>
  
  <p>The problem is that the DOM is not ready when the callback of the <code>orientationchange</code> listener is fired:</p>
  
  <pre><code>$(window).on("orientationchange", function() {
      var newWidth = $("#elem1").width() - $("#elem2").width();
      $("#elemToResize").width(newWidth);
  });
  </code></pre>
  
  <p>The computed width of elem1 and elem2 are the old ones (in the previous device orientation), thus the newWidth value is wrong. Is there any clean solution here that avoid to use a timeOut?</p>
  
  <p>ps: I am experiencing this issue on an iPhone 5s</p>