ice-lab / icestark

:tiger: Micro Frontends solution for large application(面向大型应用的微前端解决方案),站点国内镜像:https://icestark.gitee.io
https://micro-frontends.ice.work
MIT License
2.03k stars 173 forks source link

【优化】对于 runtime.json 中 external 的资源,希望能够并行加载 #710

Open HuColin opened 9 months ago

HuColin commented 9 months ago

Do you want to request a feature or report a bug? feature

What is the current behavior? 当前对于 runtime.json 中的依赖文件是串行加载的,fetch eval fetch eval ... 交替进行,希望能够尽量通过 Promise.all 的方式并行加载资源,按顺序解析资源。目前对于 微模块的主资源采用的就是这个方式。同时 css 资源可以通过 prefetch 的的方式提前获取,后置挂载。

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?