Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34915

Provide SimpleYUI access in Moodle

    Details

    • Testing Instructions:
      Hide

      Clear all caches, verify that Moodle UI that uses YUI still works:
      1/ navigation
      2/ groups UI
      3/ enrolments UI
      4/ quiz
      5/ mod chooser
      6/ etc.

      Try doing a 'stress test' using the course features demo and the course editing page. Examine if its better/worse than before.

      Show
      Clear all caches, verify that Moodle UI that uses YUI still works: 1/ navigation 2/ groups UI 3/ enrolments UI 4/ quiz 5/ mod chooser 6/ etc. Try doing a 'stress test' using the course features demo and the course editing page. Examine if its better/worse than before.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w43_MDL-34915_m24_simpleyui

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    3/Dec/12