It would be great to have a new facility within ICEfaces that would provide automatic consolidation of multiple .js file requests into a single larger file request, resulting in greatly improved page load times. This feature could use a new custom annotation to mark which .js files should be loaded and are subject to consolidation. It could also be used by any ICEfaces application that wanted to leverage it.
The way this could work is that each Get within ICEfaces for a complete page would result in a new .js file being generated for the page consisting of the consolidated .js files. Each partial-page update after that would keep the original file request (cached now) and if necessary (additional .js files added dynamically that weren't in the original page) generate another file for the newly added .js.
was:
ISSUE: The current number of @ResourceDependency entries required for YUI-based components such as Slider is very large, resulting in a large number of HTTP requests for a simple component, which can greatly increase page loading times.
It would be great to have a new facility within ICEfaces that would provide automatic consolidation of multiple .js file requests into a single larger file request, resulting in greatly improved page load times. This feature could use a new custom annotation to mark which .js files should be loaded and are subject to consolidation. It could also be used by any ICEfaces application that wanted to leverage it.
The way this could work is that each Get within ICEfaces for a complete page would result in a new .js file being generated for the page consisting of the consolidated .js files. Each partial-page update after that would keep the original file request (cached now) and if necessary (additional .js files added dynamically that weren't in the original page) generate another file for the newly added .js.
Affects: Documentation (User Guide, Ref. Guide, etc.)
Consider for 3.3.
The name of resource should be consistent, and derived from the names of all the concatenated files, to maximise cachability.