Opened 12 years ago

Last modified 10 years ago

#9764 closed enhancement

[Patch] Replace template with javascript function to improve page load time — at Version 1

Reported by: Ryan J Ollos Owned by: Rob Guttman
Priority: normal Component: QuietPlugin
Severity: normal Keywords: pull-request
Cc: Steffen Hoffmann Trac Release: 0.11

Description (last modified by Ryan J Ollos)

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. By replacing the quiet.html with quiet.js and adding using add_script, it will get located under chrome and cached in the browser.

Change History (3)

Changed 12 years ago by Ryan J Ollos

Attachment: QuietPlugin.png added

comment:1 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Keywords: pull-request added
Summary: Replace template with javascript function to improve page load time[Patch] Replace template with javascript function to improve page load time

Changed 12 years ago by anonymous

Attachment: QuietFromCache.png added
Note: See TracTickets for help on using tickets.