Increase timeout to 10s for asset load
This commit is contained in:
		
							parent
							
								
									0f77118c06
								
							
						
					
					
						commit
						f75a1e6866
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue