Would be good for speed if Koken could minify the theme CSS on "the fly"
This sounds like a simple and fast way to achieve a snappier Koken:
function compress( $minify )
/* remove comments */
$minify = preg_replace( '!/*[^*]**+([^/][^*]**+)*/!', '', $minify );
/* remove tabs, spaces, newlines, etc. */
$minify = str_replace( array("rn", "r", "n", "t", ' ', ' ', ' '), '', $minify );
/* css files for combining */
Adding some further "reading" to the list:
Was not meant as a "replacement" for a built in solution: more as a pointer to tools that could be used in Koken.
I.e clean-css that is used by the cssminifier.com
Comments have been locked on this page!