What is MinifyX?
MinifyX is a snippet that allows you to combine JS and CSS files to reduce server load and optimize loading speed.
MinifyX is created and maintained by SCHERP Ontwikkeling.
MinifyX requires MODX® Revolution 2.2.0 or later.
|1.0.0-PL1||March 26th, 2012||Patrick Nijkamp (SCHERP Ontwikkeling)||Initial release.|
|1.1.0-PL||September 09, 2012||Vasiliy Naumkin||Improved minifiers and code refactor|
Download & Installation
Install the package through the MODX® package manager.
What you need to know
Using MinifyX in the front-end
Placing the snippet
Place the main
[[[MinifyX](extras/minifyx "MinifyX")]] snippet call on your webpage. If you have placed the snippet it assigns the following placeholders to your page:
You can configure the snippet "MinifyX" with the following parameters:
|jsSources||Comma separated list to your JS files from the site base URL||Comma separated string||(empty)||no|
|cssSources||Comma separated list to your CSS files from the site base URL||Comma separated string||(empty)||no|
|minifyCss||Whether to minify the CSS or not||0 = no, 1 = yes||0||no|
|minifyJs||Whether to minify the JS or not|
|(only block comments allowed! experimental)||0 = no, 1 = yes||0||no|
|cacheFolder||The folder to the cache files from the site base URL||A string||assets/components/minifyx/cache/||no|
|jsFilename||Base name of destination js file, without extension||A string||scripts|
|cssFilename||Base name of destination css file, without extension||A string||styles|
Below you see the main snippet call and the placement of the placeholders. Every parameter is optional, we have just used some possibilities of customization.
Developers website: http://www.scherpontwikkeling.nl/portfolio/modx-addons/minifyx.html
Report bugs and request features: http://www.github.com/b03tz/MinifyX/issues