$(window).scroll(function () { //console.log($(window).scrollTop().toString() + " - " + ($(document).height() - $(window).height()).toString()); if ($(window).scrollTop() >= $(document).height() - $(window).height()) { if (isPaginationEnded) { // if previous fetch has been completed. fetchProducts(categoryId, ++pageIndex); } } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)