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.
The following patch uses the 'group' => JS_LIBRARY
option that is new to drupal_add_js()
in D7 to ensure that library-level js files are included first before all others. When using Views with various other contrib projects this prevents Views' calls to drupal_add_js()
from possibly weighting the library files above other files that expect them to be included earlier.
Comment | File | Size | Author |
---|---|---|---|
js_library.patch | 1.8 KB | yhahn | |
Comments
Comment #1
yhahn CreditAttribution: yhahn commentedComment #2
dawehnerThanks!