- 🇬🇧United Kingdom catch
Adding the issue this is postponed on to the issue title because I couldn't figure it out until I read my own comment...
Postponed on 📌 Replace custom weights with dependencies in library declarations; introduce "before" and "after" for conditional ordering Needs work
It is not possible to set an arbitrary aggregation group on JS assets.
The feature was removed when we switched to put all assets in libraries #1996238: Replace hook_library_info() by *.libraries.yml file → with the idea that this shouldn't be used for ordering js files between each others because dependencies should be explicitly declared. This worked as intended, many if not all devs use libraries and declare their dependencies.
Not allowing to set a group now prevent us from making further optimisation possible (and it did at the time too #1996238-67: Replace hook_library_info() by *.libraries.yml file → with less impact)
I think there are 2 steps:
The intent is for module developer to be able to set an aggregation group on their assets to bundle them independently from the other files as a performance optimisation, it might enable advagg to do some more fancy work too.
This will impact dependency resolution, a group can only be added below all the aggregated group dependencies (in case there are dependencies external to the aggregation group, like a script that depends on core/drupal or core/jquery within the group)
Agree and come up with the steps to get there.
Allow setting a group key in library definition, or something similar.
Postponed
10.0 ✨
Affects the content, performance, or handling of Javascript.
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Adding the issue this is postponed on to the issue title because I couldn't figure it out until I read my own comment...