Closed (fixed)
Project:
Libraries API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2010 at 13:19 UTC
Updated:
17 Dec 2010 at 23:20 UTC
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!