| cssMinifier |
Plugin |
Advanced CSS minifier plugin for CMS Made Simple. Minifies CSS strings and loads stylesheets directly from database. Features preloading, cache control, multiple file support, and automatic admin detection for development mode.
Installation
Upload function.cssMinifier.php to your assets/plugins/ folder
Use in your template's <head> section
Database CSS (Recommended):
{cssMinifier cssname="homepage"}
{cssMinifier cssname="style1,style2,style3"}
CSS String (v2.0 Compatible):
{cssMinifier css=$my_css_content}
Examples
Performance Mode:
{cssMinifier cssname="homepage" preload=1}
Development Mode:
{cssMinifier cssname="homepage" nominify=1 cache=0}
Inline Styles:
{cssMinifier cssname="homepage" inline=1} |