infscroll: preload articles a bit earlier

This commit is contained in:
Andrew Dolgov 2015-08-11 09:05:04 +03:00
parent 6b3160cf1e
commit 837443630f
1 changed files with 1 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@ function headlines_scroll_handler(e) {
}
if (!_infscroll_disable) {
if (hsp && hsp.offsetTop <= e.scrollTop + e.offsetHeight) {
if (hsp && hsp.offsetTop + -100 <= e.scrollTop + e.offsetHeight) {
hsp.innerHTML = "<span class='loading'><img src='images/indicator_tiny.gif'> " +
__("Loading, please wait...") + "</span>";