Project

General

Profile

Actions

Feature #9710

open

Javascript repository cache , e.g. jquery

Added by Terence Mill about 13 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

There is a feature we would really like to see. More and more plugins use js libs, which make it happen that one site can have same lib loaded several times, in worst case with different versions.

Every js asset shall be registered in redmine repo cache and not get build into site and loaded by client again if already registered. This way e.g only one version and one instance of jquery (ui) would be loaded.

There is already an issue in chili, which esepcially hanlde this problem for jquery and prototype.

This js repo cahce will decrease loading time and reduce comptibility issues in redmine a lot and make plugin usage more stable.

Compatibility check for jQuery and Prototype availability is already done in chiliproject.

https://www.chiliproject.org/issues/725

Actions #1

Updated by Jean-Philippe Lang about 13 years ago

This solution does not solve your problem. It lets plugins know if the core uses jquery but won't prevent 2 plugins from loading the same lib twice.

Actions #2

Updated by Jean-Philippe Lang about 13 years ago

  • Category changed from Code cleanup/refactoring to Plugin API
Actions #3

Updated by Terence Mill about 13 years ago

Of course, not. Its just soem code to start.
The issue describes the complete thing what is needful.
I already run in this problems doing eye candy for redmine with jquery, js ext, prototype. Many problems with lamda expression ($) following this also.

Actions #4

Updated by Terence Mill over 12 years ago

related to Feature #11425 JavaScript library handler for theming and plugins

Actions

Also available in: Atom PDF