diff options
author | Andrew Dolgov <[email protected]> | 2017-07-30 21:53:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-07-30 21:53:11 +0300 |
commit | 22adcd7466777d21d7d642647831761d90ea289a (patch) | |
tree | 1734799b62b4feb7b5bf98ee9b32cc9bf5c70362 /js | |
parent | 51f13e77367df10ca4eae8ab7a253c350c7b51d8 (diff) |
request counters less times during startup, delay initial request in feedlist_init() a bit
Diffstat (limited to 'js')
-rw-r--r-- | js/feedlist.js | 4 | ||||
-rw-r--r-- | js/tt-rss.js | 2 | ||||
-rwxr-xr-x | js/viewfeed.js | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/js/feedlist.js b/js/feedlist.js index 879b52d03..46a22acd0 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -198,9 +198,7 @@ function feedlist_init() { hideOrShowFeeds(getInitParam("hide_read_feeds") == 1); - request_counters(true); - timeout(); - + setTimeout(timeout, 250); } diff --git a/js/tt-rss.js b/js/tt-rss.js index 1872ad1ab..b498b5e99 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -148,7 +148,7 @@ function viewCurrentFeed(method) { function timeout() { if (getInitParam("bw_limit") != "1") { - request_counters(); + request_counters(true); setTimeout(timeout, 60*1000); } } diff --git a/js/viewfeed.js b/js/viewfeed.js index 6a1e15c33..3aaea99b9 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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); |