Skip to content

loadScriptFavicons可異步更新不用await#479

Merged
CodFrm merged 1 commit intoscriptscat:mainfrom
cyfung1031:patch_processScriptFavicon
Jun 30, 2025
Merged

loadScriptFavicons可異步更新不用await#479
CodFrm merged 1 commit intoscriptscat:mainfrom
cyfung1031:patch_processScriptFavicon

Conversation

@cyfung1031
Copy link
Collaborator

上層不用等
哪個批次完成了就更新,不用次序,不需要最後再更新

@CodFrm
Copy link
Member

CodFrm commented Jun 30, 2025

这么做的原因是我发现在低配置机器上,如果脚本过多,同时加载会导致机器卡顿

@CodFrm
Copy link
Member

CodFrm commented Jun 30, 2025

后续可以考虑将图标数据储存到 chrome.storage.local 中,这样就不会每次启动时加载这么多了

@cyfung1031
Copy link
Collaborator Author

現在是 1-20 21-40 41-60 ... 這樣載入
這個改動可以 1-20 41-60 21-40 (看網絡回應哪個先完成)

@CodFrm CodFrm merged commit c1164ce into scriptscat:main Jun 30, 2025
2 checks passed
@cyfung1031 cyfung1031 deleted the patch_processScriptFavicon branch July 8, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants