From 853992f15b4cd928ec64c831bdb213fb60cf19e1 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 3 Mar 2026 22:25:16 +0800 Subject: [PATCH] perf: increase background loading interval to 2000ms --- web/static/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/app.js b/web/static/app.js index e81c8320..ac3b35d6 100644 --- a/web/static/app.js +++ b/web/static/app.js @@ -678,8 +678,8 @@ async function loadAllCitiesProgressively(cities) { } catch (e) { console.warn(`Background load failed for ${city.name}`, e); } - // 间隔 800ms,避免瞬间并发轰炸后端 API - await new Promise((r) => setTimeout(r, 800)); + // 间隔 2000ms,避免瞬间并发轰炸后端 API,且让出浏览器主线程 + await new Promise((r) => setTimeout(r, 2000)); } } }