I have a solitary CSS file that is always needed on the home page of my client's site which, for whatever reason, the bundler refuses to bundle with anything else despite it only containing 6 or 7 lines of CSS (albeit with a load of other stuff commented out). Here is the bundler grouping info for it, showing that it is very lonely:
[00000046 7b9843aeb0262f0d246393bb86801fdd] => Array (
[0] => sites/all/themes/devtheme/js/ui.tabs/ui.tabs.css
)On the homepage there are always 3 bundles plus this solitary uncompressed file. If I set maximum bundles to 3 or 4 it makes no difference and no bundle is ever output with this file in it, not even a compressed bundle with just this file. Coming from using the old sfcache or bundlecache modules I would really like some way of forcing that file to be bundled with the majority of the other CSS. I see there is a hook_advagg_bundler_analysis but can't find any documentation or example of its usage.
Regardless of that I noticed that whenever a file such as this is added to the page without being bundled, it is not compressed. I see no reason not to output a compressed file even if the files are being added to the page individually. Presumably the same thing happens with javascript.
Comments
Comment #1
mr.j commentedDisregard, we tracked this lonely file down to a rogue block that was including it with drupal_add_css and the $preprocess flag set to FALSE.