From: Andrew Dolgov Date: Sat, 6 Apr 2013 06:33:30 +0000 (+0400) Subject: try to fill the buffer with headlines if possible X-Git-Tag: 1.7.9~56 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2b28c8f2da94c5cac2aacf13d83d370df11f29f3;p=tt-rss.git try to fill the buffer with headlines if possible --- 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) {