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

mikeytown2’s picture

See #2438001-7: How to define weights of the JS files when PREPROCESS=false

You want hook_advagg_js_pre_alter()

drupal_alter('advagg_js_pre', $javascript, $preprocess_js, $public_downloads, $scope);
glass.dimly’s picture

Status: Active » Closed (fixed)

Thank you.