Tweak downloads page to work better on slow networks (#24458)

For #20855
pull/24494/head
Paul "Joey" Clark 3 years ago committed by GitHub
parent 58cd25b166
commit 9f031488a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      downloads.html

@ -247,17 +247,20 @@ js:
var blobs = []; var blobs = [];
var retrieveBlobs = function(marker, finished) { var retrieveBlobs = function(marker, finished) {
// Generate the blob listing URL and request it from Azure // 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 != "") { if (marker != "") {
url += "&marker=" + marker; url += "&marker=" + marker;
} }
$.ajax({ $.ajax({
url: url, url: url,
type: 'GET', type: 'GET',
dataType: 'xml',
timeout: 3 * 60 * 1000,
error: function() { error: function() {
alert("Failed to load releases!"); 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) { success: function(data) {
// List of blobs retrieved, acumulate them first of all // List of blobs retrieved, acumulate them first of all
Array.prototype.push.apply(blobs, $(data).find('Blob')); Array.prototype.push.apply(blobs, $(data).find('Blob'));

Loading…
Cancel
Save