]> git.wh0rd.org Git - tt-rss.git/commitdiff
request counters less times during startup, delay initial request in feedlist_init...
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 30 Jul 2017 18:53:11 +0000 (21:53 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 30 Jul 2017 18:53:11 +0000 (21:53 +0300)
js/feedlist.js
js/tt-rss.js
js/viewfeed.js

index 879b52d03811cd893221e2abf97fa0484764e946..46a22acd0381d4f5928a61d69ed8df37bfb3088a 100644 (file)
@@ -198,9 +198,7 @@ function feedlist_init() {
 
        hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
 
-       request_counters(true);
-       timeout();
-
+       setTimeout(timeout, 250);
 }
 
 
index 1872ad1ab230157e88472427800a569c655f987a..b498b5e998e005bb80c2dbe570a21b36cf71d229 100644 (file)
@@ -148,7 +148,7 @@ function viewCurrentFeed(method) {
 
 function timeout() {
        if (getInitParam("bw_limit") != "1") {
-               request_counters();
+               request_counters(true);
                setTimeout(timeout, 60*1000);
        }
 }
index 6a1e15c33a250ac568b02c9f5128da927e288482..3aaea99b938b189b68ef7f3608e636bf8e141e77 100755 (executable)
@@ -211,7 +211,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
                if (counters)
                        parse_counters(counters);
                else
-                       request_counters(true);
+                       request_counters();
 
        } else {
                console.error("Invalid object received: " + transport.responseText);