Project

General

Profile

Actions

Feature #27694

closed

Speedup backend and allow compression in frontend

Added by Kai Vogel almost 13 years ago. Updated almost 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

Also available in: Atom PDF