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

requirejs 问题 #18

Open
sojuker opened this issue Aug 28, 2015 · 3 comments
Open

requirejs 问题 #18

sojuker opened this issue Aug 28, 2015 · 3 comments

Comments

@sojuker
Copy link

sojuker commented Aug 28, 2015

描述:

使用 amd 模式, AllInOne 的 includeAsyncs 配置为 true。 合并起来的 js 文件, async 模块在 require('mod', function(){}); 的后面被定义,所以requirejs还是会发起网络请求

所以应该将 async 模块前置

版本和配置

qq20150828-3
qq20150828-2

源码

qq20150828-4

编译后

html 代码

qq20150828-5

allInOne 的 js 代码

qq20150828-6
qq20150828-7

@2betop
Copy link
Contributor

2betop commented Aug 28, 2015

感谢反馈

@2betop
Copy link
Contributor

2betop commented Aug 28, 2015

稍等我会,我分析下原因。

@2betop
Copy link
Contributor

2betop commented Aug 28, 2015

@sojuker 请更新 1.3.1 版本,之前对于异步资源加入顺序是不对的,现在优化了逻辑,问题已经解决。

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