request counters less times during startup, delay initial request in feedlist_init() a bit
This commit is contained in:
parent
51f13e7736
commit
22adcd7466
|
@ -198,9 +198,7 @@ function feedlist_init() {
|
||||||
|
|
||||||
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
|
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
|
||||||
|
|
||||||
request_counters(true);
|
setTimeout(timeout, 250);
|
||||||
timeout();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ function viewCurrentFeed(method) {
|
||||||
|
|
||||||
function timeout() {
|
function timeout() {
|
||||||
if (getInitParam("bw_limit") != "1") {
|
if (getInitParam("bw_limit") != "1") {
|
||||||
request_counters();
|
request_counters(true);
|
||||||
setTimeout(timeout, 60*1000);
|
setTimeout(timeout, 60*1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,7 +211,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||||
if (counters)
|
if (counters)
|
||||||
parse_counters(counters);
|
parse_counters(counters);
|
||||||
else
|
else
|
||||||
request_counters(true);
|
request_counters();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.error("Invalid object received: " + transport.responseText);
|
console.error("Invalid object received: " + transport.responseText);
|
||||||
|
|
Loading…
Reference in New Issue