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

修复异步加载问题 #13

Merged
merged 1 commit into from
Nov 7, 2014

Conversation

hefangshi
Copy link
Member

问题描述:当一个资源A与资源B被打包在一起时,异步加载A的时候,A与B都会被加载,但是只有A的依赖会同时也加载,B的依赖则不会被加载,而在异步加载B的时候,会由于B本身已经被加载了,略过了依赖检查阶段,导致B的依赖加载补全

@zjcqoo @2betop 看看这样改是否可行,会造成的影响是async的资源每次都会去检查一次依赖,可能可以考虑添加一些“依赖加载完成”的标示来改进性能

问题描述:当一个资源A与资源B被打包在一起时,异步加载A的时候,A与B都会被加载,但是只有A的依赖会同时也加载,B的依赖则不会被加载,而在异步加载B的时候,会由于B本身已经被加载了,略过了依赖检查阶段,导致B的依赖加载补全
2betop added a commit that referenced this pull request Nov 7, 2014
@2betop 2betop merged commit 6a11bb1 into fex-team:master Nov 7, 2014
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.

None yet

2 participants