#16918 closed feature (wontfix)
load multiple modules via single script tag
Reported by: | yulei | Owned by: | Rawld Gill |
---|---|---|---|
Priority: | low | Milestone: | 1.9 |
Component: | Loader | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
when i use dojo.require(["moduleA","moduleB","moduleC"]); can it generate only one script tag like "<script src="url/to/server/dojo.package?moduleA&moduleB&moduleC"></scirpt>"
by this way ,the server can return only one javascript file which is compressed by server contains three modules.(in the server side can do a lot of cache works.)
i think dojo build is a little difficult to use. the build work should be black box for the javascript developer.
Change History (3)
comment:1 Changed 8 years ago by
Component: | Core → Loader |
---|---|
Description: | modified (diff) |
Owner: | set to Rawld Gill |
Summary: | load require modules by one time → load multiple modules via single script tag |
comment:2 Changed 8 years ago by
Milestone: | tbd → 1.9 |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
Believe it or not, I added experimental code for something like this in the 1.x loader that was being used at IBM. However, since there has been nearly zero interest in this machinery, there is no plan to actively support it in 1.x nor keep this support in 2.0. I've reached out to IBM to see if there are any docs of this that can be passed on to help. Absent that, take a look at the combo-api sections in dojo.js.
You can also solve this problem with a plugin and/or seek commercial support.
comment:3 Changed 8 years ago by
I've got good news for you! Check out https://github.com/OpenNTF/JavascriptAggregator/wiki.
Only dojo supports this.
Sort of a dup of #8646? Seems like something a user could do with their own AMD loader, but not something that we would want to add into dojo, now or for 2.0.