Hi,
Following on from the whole jQuery debate, I've been working with Andrew Nicols to create a YUI loader that puts jQuery and jQueryMobile in its own area. Essentially, Andrew's done the code work, and I've configured and tested.
The attached file 'yui_mymobile.js' when placed in the MyMobile Javascript folder and called by changing the config.php file from:
// Add the required JavaScript to the page
$THEME->javascripts = array(
'jquery-1.7.1.min',
'custom',
'jquery.mobile-1.1.0'
);
to;
// Add the required JavaScript to the page
$THEME->javascripts = array(
'yui_mymobile'
);
This means that there should be no conflicts with other optional jQuery's you may have. Currently tested with Moodle 2.3 version 2012062503.00 release 2.3.3 (Build: 20121112). The code also ties in with the Moodle HQ decision of having jQuery loaded via YUI if absolutely required.
I'm now changing my tune over this having seen http://jsperf.com/an-jquery-vs-yui-selectors and the presentations / work Andrew has done on using YUI Shifter etc.
Cheers,
Gareth