js. scripts are not included into Drupal

1.1k views Asked by At

For some reason one of my Drupal installations doesn't include jquery.js automatically. The most strage thing is that on local hosting all themes include jquery, but on remote hosting the theme I am using - wabi - for some reason doesn't include jquery, and as I see, $scripts variable in page.tpl.php is empty. My initial expectation was this code to appear automatically :

  <script type="text/javascript" src="/misc/jquery.js?q"></script>

How can I find out the reason why jquery is not included? Is it some settings?

1

There are 1 answers

6
ceejayoz On

It only appears on pages for which it's needed. Using the function drupal_add_js in the theme or module triggers jQuery's inclusion. If you're not using drupal_add_js to add your scripts, Drupal doesn't know that you need jQuery included.