Currently all snippets are added after any files.

The easiest solution is probably to add an additional property to each snippet's configuration, and then JsCollectionRendererDecorator::render() could prepend the relevant items to the array of elements from core's JsCollectionRenderer.

Comments

gapple created an issue. See original summary.

gapple’s picture

Issue summary: View changes

The correct place to do this would be JsCollectionRendererDecorator.

AssetResolverDecorator is able to group and order items, but JsCollectionRendererDecorator currently places all inline elements after the files rendered from core, even if they were ordered before files in the array it receives.