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

Provide SimpleYUI access in Moodle

    XMLWordPrintable

Details

    • MOODLE_23_STABLE
    • MOODLE_24_STABLE
    • w43_MDL-34915_m24_simpleyui
    • 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.

    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

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              skodak Petr Skoda
              Dan Poltawski Dan Poltawski
              Ankit Agarwal Ankit Agarwal
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12