From 1531be198d28437bbdf29401d0258132188f737c Mon Sep 17 00:00:00 2001 From: hehh Date: Tue, 25 Nov 2025 18:49:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(sw):=20=E5=BB=B6=E8=BF=9F=E6=B3=A8=E5=86=8C?= =?UTF-8?q?Service=20Worker=E4=BB=A5=E6=8F=90=E5=8D=87=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在页面加载完成后延迟3秒再注册Service Worker - 避免Service Worker注册影响页面初始渲染性能 - 确保页面资源加载完成后再进行Service Worker初始化 --- about.html | 17 ++++++++++------- index.html | 16 +++++++++------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/about.html b/about.html index e5c6d03..b3c2ca0 100644 --- a/about.html +++ b/about.html @@ -435,13 +435,16 @@ diff --git a/index.html b/index.html index 215117b..64eb85b 100644 --- a/index.html +++ b/index.html @@ -421,13 +421,15 @@