Project

General

Profile

Actions

Bug #33370

closed

config.compressJs/-Css & concatenateJs/Css problems

Added by Josef F. Glatz (Old User) over 12 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2012-01-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I know not exactly why, but sometimes the builin "scriptmerger" don't work as expected.

JS) Sometimes, not every included (per page.includeJS) javascript will be compressed (minimized) if you activate the builtin concatenator & compressor.

CSS) I have some troubles with compressed and concatenated CSS files which I included per page.includeCSS. Actually I have one project, where I include about 7 css files. It works in every browser, except in internet explorer (v7 - v9).

Are there any known issues on that features? Or daoes anybody else have found out something similar behaviour?

cheers
jousch

Actions #1

Updated by Ernesto Baschny over 12 years ago

  • Status changed from New to Needs Feedback

Hi Josef,

I was not able to reproduce the problem. Enabling the compression + concatenation like this:

config.concatenateJs = 1
config.compressJs = 1
config.concatenateCss = 1
config.compressCss = 1

Worked fine on all included local files.

Do you mind sharing a minimal Typoscript setup where the problem can be reproduced? Try to isolate the problem to a specific construct or situation where the problem you are describing appears so that it's more easy to reproduce. If possible, base your work upon the Introduction Package, as this is provides a working environment which everyone has access to.

Thanks for your valuable contribution!

Actions #2

Updated by Chris Müller over 11 years ago

I have the same problem. I am using TYPO3 4.7.3.

My relevant Typoscript configuration:

config {
  doctype = html5
  removeDefaultJS = 1
  concatenateCss = 1
  concatenateJs = 1
  compressCss = 1
  compressJs = 1
}

page {
  includeJS {
    html5shiv = fileadmin/Resources/Public/JavaScripts/html5shiv-printshiv.js
    html5shiv.excludeFromConcatenation = 1
    html5shiv.allWrap = <!--[if lt IE 9]>|<![endif]-->
  }

  includeJSFooter {
    modernizr = fileadmin/Resources/Public/JavaScripts/modernizr.js
    jquery = fileadmin/Resources/Public/JavaScripts/jquery-1.8.js
    someotherjs = fileadmin/Resources/Public/JavaScripts/someotherjs.js
  }
}

The CSS is merged, minified and compressed. The Javascript is merged and compressed but not minified.

Regards,
Chris.

Actions #3

Updated by Steffen Gebert over 11 years ago

  • Priority changed from Must have to Should have

No automatic minification for JS files, as this is error prone. Please compress your files in advance.

See docs here: http://srv123.typo3.org/TYPO3/TyposcriptReference/Setup/Config/Index.html and compare compressCss against compressJ.

I have no clue about your CSS problem. Maybe you could report it in another issue and try to strip it down to a minimal example. That would be great, otherwise I fear it's hard to reproduce.

I tend to Reject this issue then..

Actions #4

Updated by Felix Nagel almost 11 years ago

Will we get real JS compression some time? Or is there an extension already using jsCompressHandler?

EDIT: see http://typo3.org/extensions/repository/view/fe_performance

Actions #5

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to New
  • Is Regression set to No
Actions #6

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 7.2 (Frontend)
Actions #7

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from New to Needs Feedback

Is this still present in TYPO3 6.2.12 or 7 ?

Actions #8

Updated by Josef F. Glatz (Old User) almost 9 years ago

Sorry, I didn't used the TYPO3 internal compress features since I'm using Grunt and Gulp.

My colleagues told me that they using the features extensively with 4.5-6.2 without running into problems the last 2 years. (I know this is no professional response...)

Actions #9

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #10

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to Closed

So I'm closing this issue.

Actions

Also available in: Atom PDF