headConsolidator Jun 30, 2011
Collects output of the 'theme_head' filters, parses it into js, css, and other items. CSS or JS files with duplicate base names are reduced to just the first instance. (Paths are ignored.) In-line js is consolidated into one tag.
This is intended as an example of how one might process the output from the 'theme_head' filters.
[Note: this processing takes 0.02 seconds on my test system loading the Garland theme with reasonable collection of plugins. So it may not be appropriate to use it from a performance perspective.]