I noticed one of my jQuery functions wasn't working, so I inspected the html output and noticed on several pages of my site jQuery wasn't being loaded, i.e., the following line was missing from the head:

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

Is this standard Drupal behavior, or do I have something on my site that is manually turning this off? (Could be the case, I have a few custom modules that were made for me.)

Comments

mattyoung’s picture

JQuery.js and drupal.js is only added to a page if drupal_add_js() is call. If no one call that, jquery.js is not loaded. To forced jquery.js to be loaded, do this somewhere:

  drupal_add_js('', 'inline');
.kuma’s picture

Moved follow-up to more appropriate topic

yasir farooqui’s picture

Thanks... it worked for me