开发者

Multiple ajax calls for included js files inside jsp fragment

开发者 https://www.devze.com 2022-12-23 22:24 出处:网络
I am including a jsp fragment by making an ajax call. Now this jsp frag happened to include several js files.

I am including a jsp fragment by making an ajax call. Now this jsp frag happened to include several js files.

When the ajax request is completed, it is loading each of the included js files (on fragments) using a separate get request. (I checked this using firebug.)

Now is this the correct behavior (making separate get calls) or am I missing something.

I开发者_如何学Gos there a way to include the js files and send the response in one go ?


The only way to get with in a single request, is to merge them into a single file.

0

精彩评论

暂无评论...
验证码 换一张
取 消