diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-09-20 11:07:22 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-09-20 11:07:22 +0100 |
commit | c9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8 (patch) | |
tree | b06a9ded2685d230e94481e27ae51676e78adc63 | |
parent | 53e6f8ddc3a07ac781cb00d5af9805de16178415 (diff) | |
download | leaflet-soton-c9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8.tar leaflet-soton-c9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8.tar.gz |
Uninformed changes to the timeout and retry delay
This could help with loading the data on devices with slower connections.
-rw-r--r-- | src/leaflet-soton.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js index 1673318..ac5754b 100644 --- a/src/leaflet-soton.js +++ b/src/leaflet-soton.js @@ -29,7 +29,7 @@ if (data === null) { setTimeout(function() { LS.getData(callback); - }, 1000); + }, 5000); return; } @@ -1632,7 +1632,7 @@ SELECT * WHERE {\ xhttp.ontimeout = function () { callback(null); }; - xhttp.timeout = 3000; + xhttp.timeout = 4000; options.data = options.data || null; |