Skip to content

Commit e1afec4

Browse files
authored
Test to try & fix predictions
1 parent 9114d30 commit e1afec4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,14 @@ function plotPrediction (data, dates, marker, properties) {
814814
}
815815

816816
function showPrediction(url) {
817+
var delayInMilliseconds = Math.random() * (50 - 20) + 20;
818+
setTimeout(function() {
817819
return $.ajax({
818820
type: "GET",
819821
url: url,
820822
dataType: "json",
821823
});
824+
}, delayInMilliseconds);
822825
}
823826

824827
function deletePredictions(marker) {

0 commit comments

Comments
 (0)