-
Notifications
You must be signed in to change notification settings - Fork 57
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
html内存在多个带defer的<script>,而且必须按顺序执行,若只挂了第一个script,retry插入的<script>执行顺序不正确 #105
Comments
调整 script 标签插入的逻辑就好吧,retry 的 script 插入到加载失败的 script 后面一个节点 |
试过了,这样没用。目前还没想到可行的方案,建议还是改成 async 或者动态加载,避免顺序依赖 |
@JRliu 就在 document.addEventListener('error', retryScript, true) 里面执行的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a...
Current behavior
html内存在多个带defer的<script>,而且必须按顺序执行,若只挂了第一个script,retry插入的<script>执行顺序不正确。我清楚问题原因,但是没有好的方案。有什么好的解决办法吗?
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: