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

fix: 修复appendChild执行顺序的问题 #470

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

yiludege
Copy link
Collaborator

  • 提交符合commit规范
  • 文档更改
  • 测试用例添加
  • npm run test通过
详细描述

子应用调用document.head.appendChild插入script脚本,如果是外链脚本无界会将这个脚本转化为内联脚本来执行,但是用户如果连续appendChild多个有依赖关系的脚本,无界并没有保持这个依赖关系,而是哪个脚本先下载完就执行那个脚本,所以这次添加了一个dynamicScriptExecStack的栈来保持依赖关系,并且依然可以并发的请求,只是最后执行阶段保持依赖关系

@yiludege yiludege merged commit af054da into master Mar 24, 2023
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

Successfully merging this pull request may close these issues.

1 participant