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

引用本项目后打包分析得出echarts占的空间很大导致页面加载龟速 #140

Open
darlk opened this issue Mar 4, 2020 · 4 comments

Comments

@darlk
Copy link

darlk commented Mar 4, 2020

image

echarts有按需加载的方式

@lovepoem lovepoem pinned this issue Mar 4, 2020
@zhaofeng-shu33
Copy link
Member

How to load by need in echarts?

@darlk
Copy link
Author

darlk commented Mar 4, 2020

How to load by need in echarts?

https://github.com/apache/incubator-echarts/blob/master/index.js

you could have a look on this page.

and this git : https://github.com/hustcc/echarts-for-react

@wentjun
Copy link

wentjun commented Mar 8, 2020

If no one is working on this, I can try to pick this up. This may improve the initial loading speed, we could dynamically import the required bundles, rather than the entire library.

@lovepoem
Copy link
Contributor

lovepoem commented Mar 8, 2020

If no one is working on this, I can try to pick this up. This may improve the initial loading speed, we could dynamically import the required bundles, rather than the entire library.

It seems that @darlk has resoved it

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