Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Perth Hackfest October 2012/AJAX

From MoodleDocs


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.


Why keep YUI?

  • Important
    • Lots of work to convert
      • Cannot do piece by piece migration, need to convert everything at same time
    • JQuery doesn’t have widgets that Moodle uses
    • Has loader and dependency handlers
    • Adding another AJAX framework would cause performance problems
  • Not important
    • Can be done inline with SimpleYUI

Why move away from YUI/Allow a second framework?

  • Important
    • JQuery easier for simple things
    • YUI is massive to load
    • Plugin developers are using JQuery
    • Hard to theme
  • Not important
    • Hard to find YUI devs
    • YUI is hard to learn
      • Easier to find code examples/help with JQuery than YUI
    • Requires greater JS understanding and we don’t have good documentation for it.

What needs to change?

  • Better documentation
  • Need to have plan to include/support JQuery
  • Need policy
    • No core code will use it. If you want something included in core you will need to convert it.

https://www.ohloh.net/p/yui

Forum thread on this discussion: