#2196 closed enhancement (fixed)
Intern strings by looking for dojo.uri.Uri/moduleUri calls instead of templatePath/templateCssPath
Reported by: | James Burke | Owned by: | James Burke |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | BuildSystem | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Right now string interning does not work well for all widgets, because some widgets use other widget properties besides templatePath/templateCssPath to store the template URIs (Editor2 in particular).
So, look for dojo.uri calls instead, and if the file extension is .html, .htm, .txt or .css, then make a modified dojo.uri call that also includes the content of the URI as part of the dojo.uri call.
Then, in DomWidget?, look for this special property on the dojo.uri.Uri object (call it cachedContent for now), and if it is there, use it instead of trying to do a network request for the content.
Attachments (3)
Change History (7)
Changed 16 years ago by
Attachment: | 2196.patch added |
---|
Changed 16 years ago by
Attachment: | internStrings.js added |
---|
Changed 16 years ago by
comment:1 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
Note: See
TracTickets for help on using
tickets.
2196 patch (excludes internStrings.js and dojo.uri.cache)