Modify ↓
Opened 14 years ago
Closed 13 years ago
#7707 closed enhancement (fixed)
performance impprovement
Reported by: | anonymous | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | TracWysiwygPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
I would like to not load wysiwys java script to view wiki and others. They don't need wysiwyg.js and avoid loading java script improve performance a bit.
Here is sample for init.py. Please improve it.
# IRequestFilter#post_process_request
def post_process_request(self, req, template, data, content_type):
+ if not (req.args.get('action', None)=="edit" or req.path_info.startswith(r'/newticket') or req.path_info.startswith(r'/ticket/')):
+ return (template, data, content_type)
options = {}
options['escapeNewlines'] = False
regards,
Takashi Okamoto
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
If you think that the response of /chrome/tracwysiwyg/*.{js,css}
is very slow, try to use mod_cache.
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added [tracwysiwyg] templates
option in r11158. If you need the editor for only ticket pages, please configure as the following.
[tracwysiwyg] templates = ticket*.html
Note: See
TracTickets for help on using
tickets.
I cannot accept your patch.
tracwysiwyg should inject the WYSIWYG editor into the
textarea.wikitext
s in all pages. Your patch stops the work dead in admin pages, tracdiscussion pages and the other pages.I will create a patch that specify template names to enable/disable the WYSIWYG editor in trac.ini. It's configurable.