So I was browsing through the requirements class in 2.4 beta and I spotted the set_combined_files_enabled() method. I was wondering if this is meant to combine all individual CSS / JS files into one master file and load that instead (in a similar way to Plone)?
If so, is this functionality still under development? I tried setting the method to true, but it didn't seem to do anything.
and it will combine myapp1 and myapp2 into myapp. Its not documented on http://doc.silverstripe.org/doku.php?id=requirements so I don't blame anyone for not seeing this functionality before!.
Edit: added some documentation to that page - http://doc.silverstripe.org/doku.php?id=requirements#combining_files
One piece of functionality I don't like is on devmode it doesn't default back to including each individual file, it just returns false so you need to include your files the standard way, then include that line after it.
I'd advise not using this feature until the bugs have been worked out. It can get into a mode where it breaks the site tree in the CMS. By watching FireBug's console, I can tell this happens as soon as it loads assets/_combinedfiles/cmsmain.js