When the theme html template renders the scripts below the page_bottom section (this is a very normal set up), then we get:
Uncaught ReferenceError: jQuery is not defined

This could be a workaround: https://www.drupal.org/forum/support/post-installation/2011-03-02/jquery... but it's not ideal.

Removing the 'scope' => 'footer' when attaching the script solves the issue without needing to change the theme.
I'll submit a patch for this.

Best,
Fran.

CommentFileSizeAuthor
#2 jquery_not_defined-2955358-2.patch442 bytesfjgarlin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fjgarlin created an issue. See original summary.

fjgarlin’s picture

Status: Needs work » Needs review
FileSize
442 bytes

Here is the patch.