Ticket #2196 (closed enhancement: fixed)
Intern strings by looking for dojo.uri.Uri/moduleUri calls instead of templatePath/templateCssPath
| Reported by: | jburke | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | BuildSystem | Version: | 0.4.1 |
| Severity: | normal | Keywords: | |
| Cc: |
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
Change History
Note: See
TracTickets for help on using
tickets.