Modify

Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#9765 closed enhancement (fixed)

Locate tt_newticket.js under chrome so that it is treated as a static cacheable resource

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: TracTicketTemplatePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

This is essentially the same ticket that I opened in #9764 for the QuietPlugin.

I've done some work over in #7617 with help from hasienda to improve the page load times when using the DateFieldPlugin. We replaced a virtual script (template) with a script and used add_script_data that is available now in Trac 0.12 to pass data to the script. The result is (and I barely know what I'm talking about here), the js file is under chrome and is treated as a cacheable static resource, resulting in improved page load times. I put a lot of info in #7617, documenting the improvements that I saw.

I'm thinking the same is probably possible here, though I haven't really looked at your source code much to see how you were doing things.

Attachments (1)

TicketTemplate.png (17.8 KB) - added by Ryan J Ollos 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Ryan J Ollos

Attachment: TicketTemplate.png added

comment:1 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 14730:

1.0dev: tt_newticket.js is a static cacheable resource. Fixes #9765.

Catalog generation and additional testing is needed now that a JS pot file is generated.

comment:2 Changed 9 years ago by Ryan J Ollos

Owner: changed from Richard Liao to Ryan J Ollos

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.