#14820 closed defect (worksforme)
async: 'legacyAsync' on same-domain causes modules to doubly load
Reported by: | Colin Snover | Owned by: | Rawld Gill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.7.3 |
Component: | Loader | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Taking the code at http://staging.dojotoolkit.org/documentation/tutorials/1.6/hello_dojo/demo/, pointing to a same-domain built version of Dojo 1.7.2 and setting data-dojo-config="async: 'legacyAsync'"
causes the dojo.require
'd modules to be loaded once with script injection and then again with XHR.
Change History (4)
comment:1 Changed 9 years ago by
Status: | new → assigned |
---|
comment:2 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
comment:3 Changed 9 years ago by
Hi Rawld,
The document that causes a problem is the one you were working with except without the extra wrapper. 1.6- loaded cross-domain loaded Dojo Base, so not sure why legacyAsync
would/should not. Can you elaborate?
Thanks,
comment:4 Changed 9 years ago by
Rawld,
Could you please respond to my question from three weeks ago?
Thanks,
Note: See
TracTickets for help on using
tickets.
I'm not sure of the precise config you are testing. I'm assuming you're using a document like this
Notice that this is different than the example in that the code is surrounded by
This is necessary because dojo is not automatically loaded when
async
is set to anything other than falsy. I think it is arguable that this should be changed.
In any event, this configuration loads correctly without double loads.
Please provide a the precise document that is causing the problem against a standard build.
Thanks!