diff --git a/js/viewfeed.js b/js/viewfeed.js index 77ec5ce06..108d27ea4 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -212,8 +212,8 @@ function headlines_callback2(transport, offset, background, infscroll_req) { // if we have some more space in the buffer, why not try to fill it - if (!_infscroll_disable && $("headlines-spacer").offsetTop < - $("headlines-frame").offsetHeight) { + if (!_infscroll_disable && $("headlines-spacer") && + $("headlines-spacer").offsetTop < $("headlines-frame").offsetHeight) { window.setTimeout(function() { loadMoreHeadlines();