// 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();