mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Increase fetch parallel delay
This commit is contained in:
parent
c9b53b1c1a
commit
f655e54cd7
@ -20,7 +20,7 @@ export async function fetchAssets(url: string, fallbackUrls: null | undefined |
|
|||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
// Most assets can be downloaded within 250ms. To avoid wasting bandwidth, we will wait for 500ms before downloading from the fallback URL.
|
// Most assets can be downloaded within 250ms. To avoid wasting bandwidth, we will wait for 500ms before downloading from the fallback URL.
|
||||||
try {
|
try {
|
||||||
await waitWithAbort(50 + (index + 1) * 100, controller.signal);
|
await waitWithAbort(50 + (index + 1) * 150, controller.signal);
|
||||||
} catch {
|
} catch {
|
||||||
console.log(picocolors.gray('[fetch cancelled early]'), picocolors.gray(url));
|
console.log(picocolors.gray('[fetch cancelled early]'), picocolors.gray(url));
|
||||||
throw reusedCustomAbortError;
|
throw reusedCustomAbortError;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user