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.

CommentFileSizeAuthor
libraries-drupal-add-js.patch1.01 KBGábor Hojtsy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Great, thanks. Will commit this later.

tstoeckler’s picture

Status: Reviewed & tested by the community » Fixed

Tested 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.