]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Minify/README
Merge remote branch 'gitorious/0.9.x' into 0.9.x
[quix0rs-gnu-social.git] / plugins / Minify / README
1 The Minify plugin minifies your CSS and Javascript, removing whitespace and comments.
2
3 Note that if enabled this plugin and use a theme server,
4     (if any of $config['theme']['server'], $config['theme']['path'],
5     $config['theme']['dir'] are set) theme CSS will not be minified.
6
7 This plugin will use memcache, if it is available, for storing minified inline
8     and file javascript and css. Because minification is non-trivial, using
9     memcache is recommended.
10
11 Installation
12 ============
13 add "addPlugin('minify',
14     array('setting'=>'value', 'setting2'=>'value2', ...);"
15 to the bottom of your config.php
16
17 Settings
18 ========
19 minifyInlineJs (true): Minify inline javascript.
20     Because caching isn'tas effective for inline resources (due to its more
21     dynamic nature) than static files, minifying inline resources may adversely
22     affect performance for higher volume sites. Testing (and memcache usage)
23     are highly recommended.
24 minifyInlineCss (true): Minify inline CSS.
25     Because caching isn'tas effective for inline resources (due to its more
26     dynamic nature) than static files, minifying inline resources may adversely
27     affect performance for higher volume sites. Testing (and memcache usage)
28     are highly recommended.
29
30 Example
31 =======
32
33 addPlugin('minify', array());
34