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
Ken Fyten
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.0-Alpha3 [ 10032 ] | |
Assignee | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee | Ken Fyten [ ken.fyten ] | Yip Ng [ yip.ng ] |
yip.ng
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee | Yip Ng [ yip.ng ] | Adnan Durrani [ adnan.durrani ] |
Ken Fyten
made changes -
Fix Version/s | 2.0-Beta [ 10231 ] | |
Fix Version/s | 2.0-Alpha3 [ 10032 ] |
Ken Fyten
made changes -
Fix Version/s | 2.0-Beta2 [ 10242 ] | |
Fix Version/s | 2.0-Beta1 [ 10231 ] |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Fix Version/s | 2.0.0 [ 10230 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
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?