title: jQuery $(window).resize Chrome not updating
body: <p>I am using jquery to get the height of a  but this changes when someone resizes the browser. I am using the following code:</p>
  
  <pre><code>$(function() {
      var wheight = $('.home').height(); // Get height of browser window
      var wWidth = $(window).width(); // Get width of browser window
      if ( wWidth &gt;= 992 ) {
          $('.home').css('height', wheight);
      }
  })
  $(window).resize(function() {
      var wheight = $('.home').height(); // Change the height of browser resize
      var wWidth = $(window).width(); // Change the width of browser resize
  });
  </code></pre>
  
  <p>It works fine in Firefox however in Chrome it does not work when you shrink the browser window but it works if you expand the browser window. Any idea how I can fix this?</p>