Mikael Nordfeldth c00491cd7a Cosmetic changes to common_redirect, clientError, serverError 10 年之前
..
actions c00491cd7a Cosmetic changes to common_redirect, clientError, serverError 10 年之前
extlib 0c955b7c88 remove unit tests for minify 14 年之前
locale 51b28eda19 Localisation updates from http://translatewiki.net. 12 年之前
MinifyPlugin.php f110fc5c9a Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION 10 年之前
README 3bcff2fa86 Use profile->getBestName() instead of more complex i18n unfriendly construction. 13 年之前

README

The Minify plugin minifies your CSS and Javascript, removing whitespace and
comments.

Note that if enabled this plugin and use a theme server,
(if any of $config['theme']['server'], $config['theme']['path'],
$config['theme']['dir'] are set) theme CSS will not be minified.

This plugin will use memcache, if it is available, for storing minified inline
and file javascript and css. Because minification is non-trivial, using
memcache is recommended.

Installation
============
add "addPlugin('minify',
array('setting'=>'value', 'setting2'=>'value2', ...);"
to the bottom of your config.php

Settings
========
minifyInlineJs (true): Minify inline javascript.
Because caching isn'tas effective for inline resources (due to its more
dynamic nature) than static files, minifying inline resources may adversely
affect performance for higher volume sites. Testing (and memcache usage)
are highly recommended.
minifyInlineCss (true): Minify inline CSS.
Because caching isn'tas effective for inline resources (due to its more
dynamic nature) than static files, minifying inline resources may adversely
affect performance for higher volume sites. Testing (and memcache usage)
are highly recommended.

Example
=======

addPlugin('minify', array());