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

bug: async脚本可能打乱脚本执行顺序 #171

Closed
yiludege opened this issue Sep 23, 2022 · 0 comments
Closed

bug: async脚本可能打乱脚本执行顺序 #171

yiludege opened this issue Sep 23, 2022 · 0 comments

Comments

@yiludege
Copy link
Collaborator

描述bug
async 脚本按照浏览器的标准是加载完就立即执行所以是无序的,但是执行 async 脚本的时候采用了 insertScriptToIframe ,而 insertScriptToIframe 函数里面只要执行完就会调用执行队列到下一条导致 用影响了执行队列的顺序

解决办法
当 async 脚本执行时,跳过对执行队列的操作

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

1 participant