Minification
Minify JavaScript, CSS and HTML from your code with the minificators of U.
The framework minifies static .js, .css and .html files and merged files (see Static files). The same minificators are in U:
U.minify_css('.box {\n\t.title { margin: 0 0 0 0; color: #FFFFFF; }\n}'); // '.box .title{margin:0;color:#FFF}'
U.minify_js('function sum(a, b) {\n\t// adds\n\treturn a + b;\n}'); // 'function sum(a,b){return a+b}'
U.minify_html(html);The CSS minificator also compiles nested rules (a rule that contains only other rules) and variables written as $name: value;. MERGE() joins several files into one URL and is described in Static files.
The HTML minificator removes comments (but not conditional comments) and collapses runs of spaces between words. Line breaks and indentation between tags are kept. Inline <script> and <style> are minified when $minifyjs and $minifycss are on.