title: Figuring out whether a user stopped scrolling with jQuery's debounce
body: <p>I'm writing a webpage that tracks where a user is on a vertically scrolling webpage. I'm currently listening to the <code>scroll</code> event, but that's firing too often. What I'd like to do is listen to something like a <code>scroll end</code> event, but that doesn't exist. I've read through a few answers on StackOverflow, including using a timeout, and I think I've decided on using jQuery's <code>debounce</code> method to do something like this:</p>
  
  <pre><code>$(window).scroll($.debounce( 250, true, function(){
      $('#scrollMsg').html('SCROLLING!');
  } ) );
  $(window).scroll($.debounce( 250, function(){
      $('#scrollMsg').html('DONE!');
  } ) );
  </code></pre>
  
  <p>I'm worried that I could still miss some <code>scroll end</code> events. It's important to my service that I <em>always</em> catch the <code>end</code> event so that I can accurately track where the user is on the webpage. Can anyone shed some light on whether this is a valid concern? I've done some cursory testing, but I'm not confident enough to make a call...</p>