Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#13340 closed defect (fixed)

dojo/text plugin may load resources twice

Reported by: ben hockey Owned by: Rawld Gill
Priority: low Milestone: 1.7
Component: Loader Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

if the loader is in async mode it's possible that two requests for the same dojo/text! resource may occur before one of them is fulfilled. in this case, on the 2nd request, the cache will be empty and the plugin will try to load the resource. this will result in the resource being loaded twice.

from attached example (in async mode):

require([
        'dijit/form/DateTextBox',
        'dijit/form/FilteringSelect'
], function () {
        console.log('loaded');
});

the above example results in dijit/form/templates/DropDownBox.html being loaded twice.

Attachments (1)

13340.html (637 bytes) - added by ben hockey 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by ben hockey

Attachment: 13340.html added

comment:1 Changed 10 years ago by Rawld Gill

Resolution: fixed
Status: newclosed

Fixed in [25933]; thanks neonstalwart for the nice test case.

comment:2 Changed 10 years ago by bill

Milestone: tbd1.7
Note: See TracTickets for help on using tickets.