]> git.wh0rd.org Git - tt-rss.git/commitdiff
infscroll: preload articles a bit earlier
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Aug 2015 06:05:04 +0000 (09:05 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Aug 2015 06:05:04 +0000 (09:05 +0300)
js/viewfeed.js

index b5484b83a44578e31a7fc59dd0ac5dfc0f2a9012..eee365a0bcd48cf6a45717bf520aa877691d0669 100644 (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>";