javascript questions : 1.8b2

if I want to change jquery to cdn, i go in 

function noelab_theme_init() {

and I put

 $google_cdn_jquery_url = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js';

 elgg_register_js('jquery', $google_cdn_jquery_url, 'head',1);

the problem is now for me, concatenation

if I put footer then there is a conflict, like with tinymce, so I have to put all js in footer with priority.  

if I want only to change cdn for some javascript, how can I put then all in footer with same default priority?

looking in facebook_theme, there is this in default page

$js = elgg_get_loaded_js('footer');

foreach ($js as $script) { ?>

<script type="text/javascript" src="<?php echo $script; ?>"></script>

<?php

}

 

?>

but it hasn't effect. Infact if I give to jquery_cdn, footer, priority 1, and that script in default page, jquery will be in the end list of js....

I need some clear advice :-)

 

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.