i'm trying to load more results when user scroll to the bottom of page. i want it to be as much as possible cross browser(dose not matter if it's jquery or js) it should support ie8 at least! right now for checking if user have scrolled to the bottom of page i use this code:
var sTop = document.body.scrollTop || document.documentElement.scrollTop || window.pageYOffset || 0;
if(sTop + window.outerHeight == document.body.clientHeight) //user scrolled to bottom of the page?
but it's not cross browser.