From 2b28c8f2da94c5cac2aacf13d83d370df11f29f3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Apr 2013 10:33:30 +0400 Subject: [PATCH] try to fill the buffer with headlines if possible --- js/viewfeed.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/viewfeed.js b/js/viewfeed.js index db1a4bf9..77ec5ce0 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -210,6 +210,16 @@ function headlines_callback2(transport, offset, background, infscroll_req) { unpackVisibleHeadlines(); + // if we have some more space in the buffer, why not try to fill it + + if (!_infscroll_disable && $("headlines-spacer").offsetTop < + $("headlines-frame").offsetHeight) { + + window.setTimeout(function() { + loadMoreHeadlines(); + }, 250); + } + notify(""); } catch (e) { -- 2.39.5