Feature #27694
closedSpeedup backend and allow compression in frontend
100%
Description
- Modify the t3lib_Compressor to provide a default compressor for the frontend
- Add missing method to concatenate javascript files (config.concatenateJsAndCss does its job only for css files atm.)
- Speedup the determination of relative paths
- Concatenate jsFiles and jsFooterFiles in backend by default
See in attached image what happens with the backend after login if the patch is active. The timeline was recorded with en empty typo3temp and cache. Parts of the image:
- All files before patch
- JS files before patch
- All files with active patch
- JS files with active patch
Basic configuration to use the compressor in frontend:
config { ## Enable Javascript and Stylesheet compression minifyJS = 1 minifyCSS = 1 ## Merge Javascript and Stylesheet files into single files concatenateJsAndCss = 1 } page { includeCSS.myext = fileadmin/stylesheet.css includeCSS.myext.compress = 1 includeJS.myext = fileadmin/javascript.js includeJS.myext.compress = 1 }
Changed TYPO3_CONF_VARS to use concatenate handlers:
$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['concatenateHandler'] is now: $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['cssConcatenateHandler'] $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['jsConcatenateHandler']
Files
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 3 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 4 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 5 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 6 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 7 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 8 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 9 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 10 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 11 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Kai Vogel over 13 years ago
I've splitted "concatenateJsAndCss" into two options to concatenate Javascript and CSS files separately:
config { ## Concatenate Javascript and Stylesheet files concatenateJS = 1 concatenateCSS = 1 ## Also available for backward compatibility reasons, ## will concatenate JS and CSS files concatenateJsAndCss = 1 }
There is also a new setting to exclude single files from concatenation:
page { includeCSS.myext = fileadmin/stylesheet.css includeCSS.myext { ## Exclude file from concatenation excludeFromConcatenation = 1 } }
Updated by Mr. Hudson over 13 years ago
Patch set 12 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 13 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Dmitry Dulepov over 13 years ago
- Status changed from New to Under Review
Updated by Xavier Perseguers over 13 years ago
- Priority changed from Should have to Must have
Updated by Mr. Hudson over 13 years ago
Patch set 14 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 15 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Kai Vogel over 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset de141dc34d9b667a60d63b5f0546f64358bcff50.
Updated by Chris topher over 13 years ago
- Status changed from Resolved to Under Review
- % Done changed from 100 to 0
No, this one has obviously not yet been committed. Review is still in progress at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 16 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Mr. Hudson over 13 years ago
Patch set 17 of change I569d285cc12c7eec808094903d5c8ee2e749f9ec has been pushed to the review server.
It is available at http://review.typo3.org/2924
Updated by Kai Vogel over 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0c030cea1589b8eacb2774a60900a9ad1dc207c2.
Updated by Xavier Perseguers over 12 years ago
- Status changed from Resolved to Closed
Updated by Ernesto Baschny over 11 years ago
- Target version deleted (
4.6.0-beta1)