Trying to make sure Advagg bundler spits out two equal size CSS bundles as it makes a massive difference in initial server response time.
For some reason, Advagg will split files into 2 bundles (first one 4kb and second one 36kb).
On Dev server, it works perfectly with same settings. Both identical systems.
I have tried uninstalling/re-installing a few times with no luck.
On production site, it shows 88 groupings. On dev server (where everything works fine), it is showing 150 groupings.
I have spent hours and hours with no luck.
Update:
It appears that on production site, Advagg is trying to put all the system files or those added by modules in one file and theme CSS files in the second aggregate file. It then loads system CSS files aggregate first which becomes render blocking for the theme CSS files hence 4kb first file blocking 36kb second file.
This is not the intended functionality. Bundler logic allows for aggregation based on size or number of files.
How can I debug/fix this?