-
Task
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_24_STABLE
-
w43_
MDL-34915_m24_simpleyui -
Since 3.2.0 there is a new way to initialise global "Y" instance - SimpleYUI, see http://www.yuiblog.com/blog/2010/09/03/coming-inyui-3-2-0-simpleyui
Benefits:
- 100% backwards compatible
- easier to migrate oldstyle YUI2 code because Y is available in global scope everywhere
- supposedly easier to understand for JQuery users
- somehow seems to make moodle UI flicker less during page load
- simplifies static JS in "M.*" scope and module.js files
Potential problems:
- performance - are pages are very heavy, it seems that loading more at the beginning makes page init feel faster, the total time measured seems to be the same
- encourages different coding styles - it does not fit "YUI.add('moodle-xxx', function(Y) {" much