Bug #33370
closed
config.compressJs/-Css & concatenateJs/Css problems
Added by Josef F. Glatz (Old User) almost 13 years ago.
Updated over 9 years ago.
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
- 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!
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.
- 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..
- Status changed from Needs Feedback to New
- Is Regression set to No
- Target version set to 7.2 (Frontend)
- Status changed from New to Needs Feedback
Is this still present in TYPO3 6.2.12 or 7 ?
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...)
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
- Status changed from Needs Feedback to Closed
So I'm closing this issue.
Also available in: Atom
PDF