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