title: How to add or adjust this code to ALSO listen for browser resizing?
body: <p>The following code does what I need on my site:</p>
  
  <p><code>$(document).ready(function() {
    $(".position").css("height", $(".wrapper-slider").height());
  });</code></p>
  
  <p>It makes my position div the same height as the wrapper-slider.</p>
  
  <p>However, if I change the window size, it doesn't retrigger the sizing that that this javascript does.</p>
  
  <p>I thought maybe adding lines something like this would work:</p>
  
  <p><code>$( window ).resize(function() {
    $(".position").css("height", $(".wrapper-slider").height()); 
  });</code></p>
  
  <p>However, it doesn't.  I have to manually click Reload or Refresh on my browser to have the resizing triggered. What am I missing?</p>
  
  <p>If helpful, this was the original inspiration: <a href="http://jsfiddle.net/Jyu94/" rel="nofollow noreferrer">http://jsfiddle.net/Jyu94/</a></p>
  
  <p>It looks like I could use this too:</p>
  
  <p><code>$(window).resize(function(){
      location.reload();}
      );</code></p>
  
  <p>I'm not sure how to combine the two so that its all one command.</p>