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.
In #769226: Optimize JS/CSS aggregation for front-end performance and DX, the drupal_add_js() and drupal_add_css() APIs were changed to take JS_* and CSS_* constants as 'group' not as part of 'weight'. 'weight' and 'group' are now separate. Attached very simple patch to implement this.
Comment | File | Size | Author |
---|---|---|---|
libraries-drupal-add-js.patch | 1.01 KB | Gábor Hojtsy | |
Comments
Comment #1
tstoecklerGreat, thanks. Will commit this later.
Comment #2
tstoecklerTested locally and it didn't break anything.
Also this is exactly the new code that is now in drupal_process_attached(), from where this was copied in the first place.
Committed to HEAD.
http://drupal.org/cvs?commit=459058
Thanks a lot Gábor Hojtsy!