From c9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 20 Sep 2014 11:07:22 +0100 Subject: Uninformed changes to the timeout and retry delay This could help with loading the data on devices with slower connections. --- src/leaflet-soton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3