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`;
|
||||
|
||||
clearTimeout(abortTimer);
|
||||
abortTimer = setTimeout(retry, 3000);
|
||||
abortTimer = setTimeout(retry, 10000);
|
||||
};
|
||||
xhr.open('GET', url);
|
||||
xhr.send();
|
||||
|
@ -248,7 +248,7 @@ function getLazyAsset(url, filename, callback) {
|
|||
pdiv.style.opacity = '0.5';
|
||||
}, 100);
|
||||
|
||||
abortTimer = setTimeout(retry, 3000);
|
||||
abortTimer = setTimeout(retry, 10000);
|
||||
|
||||
if (hideTimer) {
|
||||
clearTimeout(hideTimer);
|
||||
|
|
Loading…
Reference in New Issue