make load speed more adapted to slow devices
This commit is contained in:
@@ -424,6 +424,15 @@ function fetchData() {
|
||||
refreshClock(new Date(now * 1000));
|
||||
}
|
||||
|
||||
if (globeIndex) {
|
||||
clearTimeout(refreshId);
|
||||
if (mapIsVisible) {
|
||||
refreshId = setTimeout(fetchData, RefreshInterval);
|
||||
} else {
|
||||
refreshId = setTimeout(fetchData, 55000);
|
||||
}
|
||||
}
|
||||
|
||||
// Check for stale receiver data
|
||||
if (last == now && !globeIndex) {
|
||||
StaleReceiverCount++;
|
||||
|
||||
Reference in New Issue
Block a user