Project

General

Profile

Actions

Feature #27694

closed

Speedup backend and allow compression in frontend

Added by Kai Vogel over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2011-06-25
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Changes:
  • 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
Backend speedup with merged js files:
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:
  1. All files before patch
  2. JS files before patch
  3. All files with active patch
  4. 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

Backend.jpg (405 KB) Backend.jpg Kai Vogel, 2011-06-25 10:50

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #48213: compressJs wrong filenamesClosedPhilipp Gampe2013-05-15

Actions
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

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
  }
}
Actions #13

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

Actions #14

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

Actions #15

Updated by Dmitry Dulepov over 13 years ago

  • Status changed from New to Under Review
Actions #16

Updated by Xavier Perseguers over 13 years ago

  • Priority changed from Should have to Must have
Actions #17

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

Actions #18

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

Actions #19

Updated by Kai Vogel over 13 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #20

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

Actions #21

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

Actions #22

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

Actions #23

Updated by Kai Vogel over 13 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #24

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Resolved to Closed
Actions #25

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF