Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2014 at 17:59 UTC
Updated:
7 Nov 2014 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eshta commentedComment #2
mikeytown2 commentedIt is by design. When does your commands for settings get added? Does is also happen inside of hook_ajax_render_alter when ajax_render is ran? If so then the best option is to have AdvAgg run first for that hook. AdvAgg is a heavy user of hook_module_implements_alter() because the ordering of hooks is vital in a lot of places.
Comment #3
eshta commentedOur settings are added via ajax_command_settings and returned from an AJAX callback using ajax_render.
Comment #4
mikeytown2 commentedAdvAgg also uses ajax_command_settings http://cgit.drupalcode.org/advagg/tree/advagg.module#n594. ajax_command_settings is a way to merge in the commands from $settings['data']; those commands get added to the $commands array either from $settings['data'] via drupal_add_js or hook_ajax_render_alter from what I can tell.
AdvAgg replays the same code that core runs because core doesn't expect something like AdvAgg where it overrides aggregation. I'll go ahead and change advagg hook execution order so advagg_ajax_render_alter runs first.
Comment #6
mikeytown2 commentedThis patch has been committed. You'll need to flush drupal's caches in order for it to take effect as hook_module_implements_alter is cached.
Let me know if how this goes.
Comment #7
mikeytown2 commented