8000 fix(pwa): reduce cold-start work for 0.9.5 by InfinityPacer · Pull Request #32 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content

fix(pwa): reduce cold-start work for 0.9.5 - #32

Merged
InfinityPacer merged 2 commits into
mainfrom
fix/pwa-cold-start
Oct 5, 2026
Merged

InfinityPacer merged 2 commits into
mainfrom
fix/pwa-cold-start

Conversation

@InfinityPacer
Copy link
Copy Markdown
Owner

改动

冷启动时,入口样式会阻止内联启动提示绘制,桌面账户微图还会让图表引擎进入首页的静态启动依赖。

生产入口样式改为非阻塞加载,样式就绪后再挂载应用。账户微图按需加载,减少启动脚本的下载与执行量。版本更新为 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 早期加载失败,通过
  • 资源仍被拦截时检查 first-contentful-paint,确认启动壳已经绘制,而非仅检查 DOM 存在

页面布局未调整,修复对象是启动时序。脚本体积减少不等于启动耗时同比减少。iPhone 主屏幕 PWA 划掉后的冷启动仍需部署后真机验证。

@InfinityPacer
InfinityPacer merged commit ec07ebc into main Oct 5, 2026
2 checks passed
@InfinityPacer
InfinityPacer deleted the fix/pwa-cold-start branch October 5, 2026 19:05
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.

1 participant

0