Исправлена автозагрузка постов в блоге

parent b37357ac
......@@ -109,7 +109,7 @@ function initScrollPager() {
var maxPosition = $(window).scrollTop();
$(window).scroll(function() {
var position = $(window).scrollTop() + $(window).height();
if(position >= maxPosition && position >= $(document).height() - 600 && !loadProcess && !allPostsLoaded) {
if(position >= maxPosition && position >= $(document).height() - 500 && !loadProcess && !allPostsLoaded) {
maxPosition = position;
loadPosts();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment