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

是否可以优化加载速度? #43

Open
wflashy opened this issue Feb 3, 2017 · 7 comments
Open

是否可以优化加载速度? #43

wflashy opened this issue Feb 3, 2017 · 7 comments

Comments

@wflashy
Copy link

wflashy commented Feb 3, 2017

钉钉官方提供的微应用性能检测工具
http://mqc.aliyun.com/hfive.htm?from=dingtalk
用该工具测试salt-ui,首页加载时间过长(3s以上),是否可以优化加载速度?

@gbk
Copy link
Collaborator

gbk commented Feb 4, 2017

image

结果似乎不可信,实际加载时间是三百多毫秒,他们把容器初始化的时间也算进去了。我找阿里云测的人问下

@gbk
Copy link
Collaborator

gbk commented Feb 4, 2017

在一些机型上面确实很慢,saltui 大包依赖模块过多是一方面原因,react 创建结点过多是另一方面原因,结点多了导致频繁 gc。

解决方案有两个:

  1. 使用 server render,在服务端完成页面的预渲染
  2. 按需加载 saltui 组件,需要等 6 月份 saltui 开源化完成之后

@WangYang-Rex
Copy link

WangYang-Rex commented Sep 6, 2017

请问saltui现在开源了么,目前遇到了加载过慢的情况,或者可以使用npm来加载saltUI

@WangYang-Rex
Copy link

或者按需加载

@2999
Copy link
Collaborator

2999 commented Sep 7, 2017

在进行最后的一些工作了,即将开源,开源之后,将支持按需引入组件,不需整包加载

@WangYang-Rex
Copy link

@2999 请问有更具体的开源时间吗

@gbk gbk mentioned this issue Sep 15, 2017
@2999
Copy link
Collaborator

2999 commented Sep 21, 2017

#62

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

No branches or pull requests

4 participants