Menu
Hello!
I need to load some content when user scrolls page to 90%. How to determine when scroll = 90% and to send only one query?
[CODE]
$(window).scroll(function(){
if($(window).scrollTop() == ($(document).height() – $(window).height())) {
$.ajax({
……
});
}
}
It’s works and sent several queries when scroll = 100% but I need to sent only one query when window scroll = 90%.
Thank you!