I don't like the default Magento combine js / css feature. It just clumps up the entire page of js and css into one file on a per-page basis. This results in pages that have one additional css resource generating a new css file - 90% of which should be cached by the client and not downloaded AGAIN as part of this new css file.
What I am wanting to do is intelligently combine js and css files, so the default head addJs / addItem actions are grouped into one file, then any additional page-specific js is grouped into another file.
How do I detect what layout block (e.g. default) the action addItem was being called from?
Alternatively, if there is an extension that does this then I would be interested in the pre-built solution (I haven't found one).