Got it, thanks, Noah. FYI, for me it seems two of the same version of jquery-ui were conflicting with each other. I manually moved the JS file to common/js and reference that one same file in both plugins. Since the urls are now identical, Trac automatically does not load the second one - effectively doing what I would have had to do myself in a post-req filter (which I may still implement since I don't like the manual mods at all).
- Rob -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Noah Kantrowitz Sent: Friday, May 28, 2010 6:01 PM To: [email protected] Subject: RE: [Trac-dev] Sharing static resources across plugins Not really. Most good JS libraries will not break if they are included multiple times for exactly this reason, though it does affect page load times. If you end up reeeeally needing to do it, you can use a post-req filter to walk the JS/CSS lists and look for possible duplicated. --Noah > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of rob > Sent: Friday, May 28, 2010 1:32 PM > To: Trac Development > Subject: [Trac-dev] Sharing static resources across plugins > > Is there a (best) way to share static resources across Trac plugins? > For example, let's say I have multiple plugins that each want to add > jquery-ui or tinymce scripts, for example - how best to do that so > that the same scripts don't get added multiple times (and therefore > conflict)? > > Thanks. > - Rob > > -- > You received this message because you are subscribed to the Google > Groups "Trac Development" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to trac- > [email protected]. > For more options, visit this group at > http://groups.google.com/group/trac-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
