Details
-
Type: Task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:IF Sparkle components
Description
Currently, the initial batch of Sparkle components are loading their respective YUI JS libraries dynamically from the Yahoo servers. We need to consolidate the require YUI libs (2.x and 3.x) used by the components in to a local copy that they refer to instead.
This should consist of:
1. The latest YUI 2.x release.
2. The latest YUI 3.x release.
This should consist of:
1. The latest YUI 2.x release.
2. The latest YUI 3.x release.
Issue Links
- blocks
-
ICE-5576 ACE metadata static resource optimization
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
YUI libraries 2.8.1 and 3.1.1 checked in. To use, in component class (e.g. SelectInputDate.java) add:
@ResourceDependencies(
{ ...... @ResourceDependency(library = "yui/2_8_1", name = "calendar/calendar-min.js"), ...... })
calendar-min.js is minified version. To trace code in debugger, use calendar.js or calendar-debug.js. calendar-debug.js may make use of logger control, so you may also need logger.css and logger-debug.js:
@ResourceDependencies(
{ ...... @ResourceDependency(library = "yui/2_8_1", name = "logger/assets/skins/sam/logger.css"), @ResourceDependency(library = "yui/2_8_1", name = "calendar/calendar-debug.js"), @ResourceDependency(library = "yui/2_8_1", name = "logger/logger-debug.js"), ...... })
Dynamic CSS and JS loading from the client side (YUILoader.insert() in YUI2 and YUI().use() in YUI3) probably won't work for local copies of libraries?