title: Reset Scroll Bar Detection on Window Resize jQuery
body: <p>I have created a jQuery window scroll-bar detector but when I re-size the browser window, in-turn changing the scroll-bar status, either from visible to not visible or vice-versa, the status notifier remains static. How can I keep the status notifier continuously updated on every re-size in a simple way <strong>without AJAX calls</strong>, via strictly javascript?</p>
  
  <p>For further context, I am basically trying to come up with a solution for semi-infinite-scrolling if the content dosn't exceed the window size. If one of you guys figures this out it will be very benifical for a lot of UI developers trying to incorporate the highly demanded and popular load-on-scroll effect. Thanks in advance. Here is my <a href="http://jsfiddle.net/TwJAM/99/" rel="nofollow">demo</a>.</p>
  
  <pre><code>$(window).resize(function () {
  
      ///????
  
  });
  </code></pre>