From 9f031488a385b076e9b3f4e21046437e926f87b3 Mon Sep 17 00:00:00 2001 From: "Paul \"Joey\" Clark" Date: Tue, 1 Mar 2022 17:52:32 +0800 Subject: [PATCH] Tweak downloads page to work better on slow networks (#24458) For #20855 --- downloads.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/downloads.html b/downloads.html index 92b45c1647..3cba9843b6 100644 --- a/downloads.html +++ b/downloads.html @@ -247,17 +247,20 @@ js: var blobs = []; var retrieveBlobs = function(marker, finished) { // Generate the blob listing URL and request it from Azure - var url = 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&maxresults=5000&prefix=geth-'; + var url = 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&maxresults=250&prefix=geth-'; if (marker != "") { url += "&marker=" + marker; } $.ajax({ url: url, type: 'GET', + dataType: 'xml', + timeout: 3 * 60 * 1000, error: function() { alert("Failed to load releases!"); + // Remove the modal blocker, so the user can at least access the things which have loaded + $('#loader').modal('hide'); }, - dataType: 'xml', success: function(data) { // List of blobs retrieved, acumulate them first of all Array.prototype.push.apply(blobs, $(data).find('Blob'));