fex-team / fis-velocity-tools

Like velocity-tools, we focus on the front-end integrated solution.
29 stars 23 forks source link

不是完整HTML不加载framework #25

Closed richardchen85 closed 8 years ago

richardchen85 commented 8 years ago

在ajax求请html页面中也会加一次require.js或者mod.js,而且url是带时间戳的,所以肯定会多一次请求,但实际上不需要

2betop commented 8 years ago

亲,这个需求可以通过注释占位符来控制的。

richardchen85 commented 8 years ago

即使不加<!--FIS_FRAMEWORK_PLACEHOLDER-->也会加载模块化框架,因为它被写入了Resourcejs属性里,在调用renderJS()时就出来了

2betop commented 8 years ago

请更新, 问题解决了。

richardchen85 commented 8 years ago

OK,果然比我的方式好