title: trying to call an alert at window bottom for pagination
body: <p>I am trying to call an alert at bottom of screen, but don't why is it only calling when I scroll at the top.</p>
  
  <pre><code>$(window).scroll(function(){
          if($(document).height()==$(window).scrollTop()+$(window).height()){
          alert($(document).height());                                //1926 at top
          alert($(window).scrollTop()+$(window).height());            //1926 at top
          }
      });
  </code></pre>
  
  <p>My page contains images they are taking time to load, but always the alert call on top.</p>
  
  <p>I am working on chrome and Mozilla. 
  This jQuery I am using also, I am sure that the bug is due to this:</p>
  
  <p><a href="http://www.webski.com.au/blog/web-design/blocksit-js-jquery-plugin-for-dynamic-grid-layout-like-pinterest/23-oct-2013/0051/" rel="nofollow">http://www.webski.com.au/blog/web-design/blocksit-js-jquery-plugin-for-dynamic-grid-layout-like-pinterest/23-oct-2013/0051/</a></p>
  
  <p>Actually I want pagination on that jQuery.</p>