Increase timeout to 10s for asset load
This commit is contained in:
parent
0f77118c06
commit
f75a1e6866
|
@ -237,7 +237,7 @@ function getLazyAsset(url, filename, callback) {
|
||||||
pdiv.innerHTML = `${filename} - ${loaded}KB / ${total}KB`;
|
pdiv.innerHTML = `${filename} - ${loaded}KB / ${total}KB`;
|
||||||
|
|
||||||
clearTimeout(abortTimer);
|
clearTimeout(abortTimer);
|
||||||
abortTimer = setTimeout(retry, 3000);
|
abortTimer = setTimeout(retry, 10000);
|
||||||
};
|
};
|
||||||
xhr.open('GET', url);
|
xhr.open('GET', url);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
@ -248,7 +248,7 @@ function getLazyAsset(url, filename, callback) {
|
||||||
pdiv.style.opacity = '0.5';
|
pdiv.style.opacity = '0.5';
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
abortTimer = setTimeout(retry, 3000);
|
abortTimer = setTimeout(retry, 10000);
|
||||||
|
|
||||||
if (hideTimer) {
|
if (hideTimer) {
|
||||||
clearTimeout(hideTimer);
|
clearTimeout(hideTimer);
|
||||||
|
|
Loading…
Reference in New Issue