[TYPO3-v4] TYPO3 PageRenderer introduces a concatenation/compression change from 4.3 to 4.4

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Fri Sep 24 23:17:06 CEST 2010


Hi Folks!

The TYPO3 PageRenderer in version 4.3 has these lines:

if ($this->compressCss || $this->compressJavascript) {
	// do the file compression
	$this->doCompress();
}
if ($this->concatenateFiles) {
		// do the file concatenation
	$this->doConcatenate();
}

In version 4.4 these lines have swapped:

if ($this->concatenateFiles) {
		// do the file concatenation
	$this->doConcatenate();
}
if ($this->compressCss || $this->compressJavascript) {
		// do the file compression
	$this->doCompress();
}

While developing my own compression/concatenation handler this change 
breaks the overall compression/concatenation concept, because if you 
need to concatenate files BEFORE compressing them, you can't control 
which files to compress and which not.

In other words: In the method "doConcatenate()" you have the compression 
information (fileXY.compressed = 1|0) for each single JS file. But as 
you need to concatenate all files there, you DON't have this information 
in the method "doCompress()" anymore, so it's not possible to skip 
single files from JS compression.

This is problematic, because sometimes you don't want specific files to
be compressed, but only concatenated in the end.

Is there any workaround for this; any reasons for this change?

Thanks a lot for help,
Thomas


More information about the TYPO3-project-v4 mailing list