[TYPO3-german] JS/CSS Compression für Inline-JS und -CSS

Michael typo3ml at schams.net
Tue Jan 1 03:44:23 CET 2013


On 01/01/13 06:23, Daniel Bachmann wrote:

> config {
>    minifyJS = 0
>    minifyCSS = 0
>    compressJs = 0
>    compressCss = 0
>    concatenateJs = 0
>    concatenateCss = 0
> }
> 
> Ich glaube das funktioniert ab Version 4,6. Ggf. auch 4.5.

Ist meines Wissens nach erst ab 4.6 eingefuehrt worden. "minify*" und
"compress*" sind identisch, wobei "minify" nicht mehr benutzt werden sollte:

config.compressJs is the new name for config.minifyJS which has been
deprecated.
config.compressCss is the new name for config.minifyCSS which has been
deprecated.

see: Rename and deprecate config.minifyJS/config.minifyCSS
http://forge.typo3.org/issues/28677

Ein paar weitere Infos findet man auch in den Release Notes von 4.6,
ganz am Ende der Seite, unter "JS/CSS Compression":
http://wiki.typo3.org/TYPO3_4.6

Ausserdem sollte an dieser Stelle erwaehnt werden, dass "compression of
javascript files with jsmin" in 6.0 wieder entfernt wurde:

(quote) "The default compression of certain javascript files in frontend
and backend with the jsmin library was removed from the core due to
license issues. The code segment was substituted with a hook, so
extensions can now deliver compression solutions if needed. In general,
it is a good idea to configure a webserver to compress javascript and
css files on the webserver with gzip."

see: jsmin.php uses non-free license
http://forge.typo3.org/issues/31832

Man sollte also etwas aufpassen, wie und mit welcher TYPO3 version man
die JS/CSS compression vom core einsetzt :-)


Cheers
Michael



More information about the TYPO3-german mailing list