By Gastonia on
I have a situation where jQuery and javascript files are loading just as they should in Firefox, but looking at the source code of IE and Chrome they are no where to be found.
Does anyone know why this is happening?
I need for all my javascript files to load on every single page as part of the template design, regardless if that page uses it or not.
What's the correct way to ensure this?
the site is:
cm.previewserver.org
Thanks,
Blue
Comments
It looks the same in Firefox
It looks the same in Firefox and Chrome and I see the scripts in both. Are you using the jQuery Update module and how are you including the scripts?
cdn upload
well, I finally had to manually add google cdn to the template files to get it to work. You're saying though you can see the drupal.js and jquery update calls in FF and Chrome?
so far I don't have any conflicts from manually linking to the cdn, but this is a hack. I would like to know how to do it the correct way. Thanks for the help!
Blue
You should use
You should use drupal_add_js() or a themes .info file to always add a js file.
You should not directly add jquery.js and there is a module for jQuery UI.
There is also a module called jQuery Update if you want to run with a newer copy of jquery that core ships with.
There is no easy way to use a cdn to provide the js files.
If you need a newer version of jQuery you may want to also consider Drupal 7 which include jQuery UI.