Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

性能:避免大的chunks #36

Open
northword opened this issue May 19, 2024 · 0 comments
Open

性能:避免大的chunks #36

northword opened this issue May 19, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@northword
Copy link
Member

northword commented May 19, 2024

静态页面已经包含了全部数据内容,不应在 JS 中继续包含数据。

考虑使用 Vite 插件提供的虚拟模块能力,避免数据被打包进 JS 文件。

考虑将数据拆分为页面级别,避免加载不需要的数据。

涉及:

Git 记录

各个页面

  • translators 页面

  • styles 页面

  • 列表页面不需要 testCase

  • 详情页面之需要当前对应的

考虑在 build 时,根据已有数据生成一系列 页面级 json,在 client fetch json ,然后加载。

列表上需要的数据包括基本信息和每个页面级 json 的路径。

@northword northword added the enhancement New feature or request label May 19, 2024
@northword northword changed the title 性能:数据不应被包含在 JS 中 性能:避免大的chunks Jun 10, 2024
@northword northword added the help wanted Extra attention is needed label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant