[TYPO3-core] RFC: #9714: Feature for automatic load of compressed library

Oliver Hader oliver at typo3.org
Fri Oct 31 23:39:11 CET 2008


Hi Steffen,

Steffen Kamper schrieb:
> This is an SVN patch request.
> 
> Type:
> New feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9714
> 
> Branches:
> trunk
> 
> The function loadJavascriptLib includes javascript library files if they
> are not already are included.
> 
> This patch looks for the compressed version of the lib file and use it
> when available.
> 
> This behaviour can be disabled with
> $TYPO3_CONF_VARS['BE']['disableCompressedLibs'] = '1';
> eg for debugging.
> 
> 
> Additional Information:
> the only thing is that a compressed lib has to exist like this:
> typo3/contrib/prototype/prototype.js
> typo3/contrib/prototype/prototype.compressed.js
> 
> call is like before:
> loadJavascriptLib('contrib/prototype/prototype.js');

Wouldn't it be possible to integrate a new minification generator that
uses t3lib_div::minifyJavaScript() to generate these compressed scripts?
The risk with manually generated compressed scripts in the core is that
on updating the uncompressed version one forgets to recreate the
compressed version...

Besides that: Ingmar is working on a possibility to merge an minify
JavaScript and CSS files automatically...

olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager


More information about the TYPO3-team-core mailing list