1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:05:56 +00:00

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

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>";