Repository navigation
fix(pwa): reduce cold-start work for 0.9.5 - #32
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
冷启动时,入口样式会阻止内联启动提示绘制,桌面账户微图还会让图表引擎进入首页的静态启动依赖。
生产入口样式改为非阻塞加载,样式就绪后再挂载应用。账户微图按需加载,减少启动脚本的下载与执行量。版本更新为 0.9.5。
验证
bun test tests通过,432 项测试bun run build、所改文件 Prettier 检查与git diff --check通过bun run test:browser覆盖桌面、移动端、图表、导航、主题与减少动态效果,通过bun tests/pwa-boot.browser.ts覆盖 CSS、JS、API 延迟和 CSS 早期加载失败,通过页面布局未调整,修复对象是启动时序。脚本体积减少不等于启动耗时同比减少。iPhone 主屏幕 PWA 划掉后的冷启动仍需部署后真机验证。