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

asyncLoadJs在并发加载两个js文件时会导致相对路径错误 #589

Open
clay6447 opened this issue Apr 15, 2024 · 1 comment
Open

Comments

@clay6447
Copy link

clay6447 commented Apr 15, 2024

如题,如果并发加载的两个js都是相对路径,那第二个js的路径就不对了,比如同时加载jquery和airship,airship内部可能也在动态加载别的js文件,可能会导致加载路径变成../jquery/p-68ed0ce0.system.js,可是这个文件是在airship文件夹下的,我知道应该去改airship.js的源码,可那是个别人的库,没法动,能不能改进asyncLoadJs来解决这个问题?
(jquery和airship的加载是在两个不同组件内部,代码无法放在一起处理)

@jia000
Copy link
Collaborator

jia000 commented Apr 16, 2024

请提供一个可复现问题的demo

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

2 participants