Increase fetch parallel delay

This commit is contained in:
SukkaW 2025-03-02 23:21:03 +08:00
parent c9b53b1c1a
commit f655e54cd7

View File

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