From 10e48fe4499bef9cab258f9a81cb6973148aa2af Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 18 Nov 2013 06:59:25 +0000 Subject: [PATCH] increase parallel requests - this matces behaviour of stock intel site, and speeds things up a bit --- code/map_data_request.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index 3431a6c5..6e4123e0 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -15,8 +15,9 @@ window.MapDataRequest = function() { this.idle = false; - // no more than this many requests in parallel - this.MAX_REQUESTS = 4; + // no more than this many requests in parallel. stock site seems to rely on browser limits (6, usually), sending + // all requests at once. using our own queue limit ensures that other requests (e.g. chat) don't get postponed for too long + this.MAX_REQUESTS = 6; // no more than this many tiles in one request // as of 2013-11-11, or possibly the release before that, the stock site was changed to only request four tiles at a time