#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)
Change History (3)
Changed 10 years ago by
Attachment: | 13340.html added |
---|
comment:1 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Milestone: | tbd → 1.7 |
---|
Note: See
TracTickets for help on using
tickets.
Fixed in [25933]; thanks neonstalwart for the nice test case.