瀏覽代碼

Increase fetch parallel delay

SukkaW 1 年之前
父節點
當前提交
f655e54cd7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Build/lib/fetch-assets.ts

+ 1 - 1
Build/lib/fetch-assets.ts

@@ -20,7 +20,7 @@ export async function fetchAssets(url: string, fallbackUrls: null | undefined |
     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.
       try {
-        await waitWithAbort(50 + (index + 1) * 100, controller.signal);
+        await waitWithAbort(50 + (index + 1) * 150, controller.signal);
       } catch {
         console.log(picocolors.gray('[fetch cancelled early]'), picocolors.gray(url));
         throw reusedCustomAbortError;