Increase timeout to 10s for asset load

This commit is contained in:
Varun Patil 2020-10-20 12:13:36 +05:30
parent 0f77118c06
commit f75a1e6866
1 changed files with 2 additions and 2 deletions

View File

@ -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);