From c55c166d5d06217d5f3a62292b91c2e00bb1e919 Mon Sep 17 00:00:00 2001
From: Steve Clay
For the best performance you can serve these files as a pre-defined group with a URI
-like: /min/?g=keyName
/min/?g=keyName
To do this, add a line like this to /min/groupsConfig.php:
return array(
@@ -96,7 +96,7 @@ remove them. Therefore, you will want to remove those that point to files alread
in your list, and move any others to the top of the first file in your list
(imports below any styles will be ignored by browsers as invalid).
If you desire, you can use Minify URIs in imports and they will not be touched
-by Minify. E.g. @import "/min/?g=css2";
+by Minify. E.g. @import "/min/?g=css2";
diff --git a/min/lib/Minify/HTML.php b/min/lib/Minify/HTML.php
index 2581eb4..674764d 100644
--- a/min/lib/Minify/HTML.php
+++ b/min/lib/Minify/HTML.php
@@ -22,7 +22,18 @@ class Minify_HTML {
* "Minify" an HTML page
*
* @param string $html
+ *
* @param array $options
+ *
+ * 'cssMinifier' : (optional) callback function to process content of STYLE
+ * elements.
+ *
+ * 'jsMinifier' : (optional) callback function to process content of SCRIPT
+ * elements. Note: the type attribute is ignored.
+ *
+ * 'xhtml' : (optional boolean) should content be treated as XHTML1.0? If
+ * unset, minify will sniff for an XHTML doctype.
+ *
* @return string
*/
public static function minify($html, $options = array()) {
@@ -36,7 +47,11 @@ class Minify_HTML {
$html = str_replace("\r\n", "\n", trim($html));
- self::$_isXhtml = (false !== strpos($html, '