summaryrefslogtreecommitdiff
path: root/js/viewfeed.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r--js/viewfeed.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index db1a4bf94..77ec5ce06 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) {