Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | jquery_not_defined-2955358-2.patch | 442 bytes | fjgarlin |
Comments
Comment #2
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Amazee Labs commentedHere is the patch.