Give the gift of Drupal. All merchandise is 50% off through 2016.
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.
Before this, wysiwyg.init.js was loaded after all the core scripts in misc/, with the patch it's loaded right after drupal.js and before vertical-tabs.js, states.js and form.js but given its contents this is not a problem.
Patch looks good and does what it's supposed to.
Well, this bug is about the basic API change that JS_* constants should now be used for 'group', not for 'weight'. Glad it tested well :) We run the module with this patch for the past two weeks, and it worked out for us nice as well.
Thanks for reporting, reviewing, and testing! Committed to HEAD.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.