Habari Plugin: Minify
A plugin for Habari that makes use of the minify project to combine and compress javascript and CSS. Although this is basically just a minify wrapper, I’d still consider it alpha status, so use at your own risk!
From the minify project page:
Minify is a PHP5 app that can combine multiple CSS or Javascript files, compress their contents (i.e. removal of unnecessary whitespace/comments), and serve the results with HTTP encoding (gzip/deflate) and headers that allow optimal client-side caching. This helps you follow several of Yahoo!‘s Rules for High Performance Web Sites.
To enable minification for your theme stylesheet(s), you’ll need to add them to the template_stylesheet stack, like so:
Stack::add('template_stylesheet', array(Site::get_url('theme').'/style.css', 'screen'), 'style');You can then remove the stylesheet from the head section of the theme HTML. Also, make sure the theme is calling theme_header() somewhere in the head section.