Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
Great module. I have an issue with a particular JS file that breaks when aggregated (Views Slideshow's bundled jQuery Cycle plugin). On D6 with Boost, if relevant.
Using JS Alter module to disable caching for a specific file worked before installing Advagg, but hook_advagg_js_alter as an alternative has me slightly confused as to how to tell it to not cache a file.
I have gotten this far (below), which is to say, not far at all. Would I search the array $files for the file in question and then unset it? Or would that remove the file from being added to at all? Or is this the right hook?
/**
* Implement hook_advagg_js_alter.
*/
function cc_util_advagg_js_alter(&$contents, $files, $bundle_md5) {
dd($contents, 'contents');
dd($files, 'files');
dd($bundles, 'buundles');
}
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedSee #2438001-7: How to define weights of the JS files when PREPROCESS=false
You want hook_advagg_js_pre_alter()
Comment #2
glass.dimly CreditAttribution: glass.dimly commentedThank you.