In #769226: Optimize JS/CSS aggregation for front-end performance and DX, the drupal_add_js() API was changed to take JS_* constants as 'group' not as part of 'weight'. 'weight' and 'group' are now separate. Attached very simple patch to implement this.

Comments

gábor hojtsy’s picture

Title: drupal_add_js() API change » drupal_add_js() and drupal_add_css() API change
Status: Active » Needs review
StatusFileSize
new3.3 KB

Updated patch to include change for drupal_add_css() as well.

JacobSingh’s picture

Status: Needs review » Fixed

Köszönöm uram

Status: Fixed » Closed (fixed)

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