Extensions > js_minifier
| [js_minifier] Javascript minifier | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
A javascript minifierJavascriptMinifier is an extension for typolight that automatically packs javascript filesfor you. It also provides an inclusion mechanism. It uses the Nicolas Martin's PHP port of Dean Edwards JavaScript's Packer.
All you have to do is to create the frontend module "Javascript Minifier", select thefiles you want to pack in the file tree and add the module in your page or layout. Istrongly recommend that you put it just before closing the body tag, for perfs sake. If you're an extension developer, you can add files to be minified just like you use TL_JAVASCRIPT : $GLOBALS[ 'TL_JAVASCRIPT_MIN' ][] = 'path/to/file.js'; OptionsThe module support two options :
Assembling orderFiles from $GLOBALS[ 'TL_JAVASCRIPT_MIN' ] are treated first, in the order they appear in the array. Then, each file selected in the module configuration is included, in alphabetical order, so you can determine the inclusion order simply by prefixing files with numbers. If the inclusion mechanism is on, you can add on top of your javascript files things like : Path is relative to the including file. | ||||||||||||
| Version | 1.0.0 stable | Type | Free | |||||||||
| Release date | 2010-02-22 | Category | Utility | |||||||||
| License | LGPL | |||||||||||
| Copyright | © 2010, Olivier El Mekki | |||||||||||
| Author | Olivier El Mekki (kik) http://olivier-elmekki.com | |||||||||||
| Release notes and change log for 1.0.0 stable | Other versions | |||||||||||
| 1.0.0 rc1 | |||||||||||
| Release downloads | 10 | Total downloads | 15 | |||||||||
| Release installs | 31 | Total installs | 35 | |||||||||
| Release updates | 1 | Total updates | 1 | |||||||||
| Dependencies of this extension | Other extensions depending on this one | |||||||||||
|
| |||||||||||
| Package | Size | Date |
|---|---|---|
| Contao_js_minifier_10000009_9.zip | 20310 | 2011-08-13 03:27 |
