Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 bill)

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 9 years ago by bill

Component: CoreLoader
Description: modified (diff)
Owner: set to Rawld Gill
Summary: load require modules by one timeload multiple modules via single script tag

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.

comment:2 Changed 9 years ago by Rawld Gill

Milestone: tbd1.9
Priority: undecidedlow
Resolution: wontfix
Status: newclosed

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 9 years ago by Rawld Gill

I've got good news for you! Check out

Only dojo supports this.

Note: See TracTickets for help on using tickets.