try to fill the buffer with headlines if possible

This commit is contained in:
Andrew Dolgov 2013-04-06 10:33:30 +04:00
parent ef74a05ea2
commit 2b28c8f2da
1 changed files with 10 additions and 0 deletions

View File

@ -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) {