wuhan2020 / map-viz

通用的地图可视化组件
276 stars 88 forks source link

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

Open darlk opened 4 years ago

darlk commented 4 years ago

image

echarts有按需加载的方式

zhaofeng-shu33 commented 4 years ago

How to load by need in echarts?

darlk commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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