Using CDN for jQuery and jQuery-ui with Drupal 6 For my Drupal 6 site, I'd like to get the latest jQuery and jQuery-ui scripts from the Google CDN.  Although this seems like something that many people would want to do, it seems that it is not so easy.

The project Advanced CSS/JS Aggregation (advagg) seems promising, but after installing it and trying to use the Google CDN in the standard way, e.g., adding 

&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"&gt;&lt;/script&gt;


to the head of a Drupal page, those files are not available.

Any ideas for how to do this?

EDIT:

I used drupal_set_html_head() to add the above lines to the HEAD of the Drupal page where I want to use jQuery and jQueryUI.  I verified that this was working by viewing the page source.
Those files look to be available https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js

update

As to why it didn't work:


Jquery that ships with drupal 6 is 1.2.3
The Jquery update module can push this to 1.3.2


You are trying to use a much more recent version of jquery than Drupal 6 can handle. Drupal uses a lot of jQuery in it's workings, so it is not straightforward to put a new version on top. Sorry I didn't spot that earlier.