Issue Bug Closed

#93511Assets from f:asset VH do not get concatenated

Roman Büchler 02/14/21, 20:49 updated 12/02/25, 14:33

Description

Assets from the f:asset view helpers don’t get concatenated with assets from TS. The following setup results in four tags:

Setup

TS

config.concatenateCss = 1
config.concatenateJs = 1
page.includeCSS.theme = EXT:pizpalue/Resources/Public/Scss/theme-main.scss
page.includeJSFooterlibs.pizpalueGeneral = EXT:pizpalue/Resources/Public/JavaScript/Src/jquery.general.js

Fluid

<f:asset.css identifier="ppAos" href="EXT:pizpalue/Resources/Public/Contrib/aos/aos.css" media="all" />
<f:asset.script identifier="ppAos" src="EXT:pizpalue/Resources/Public/Contrib/aos/aos.js" />

Resulting tags

<link rel="stylesheet" type="text/css" href="/typo3temp/assets/compressed/merged-88a99c8e8d704ebf6ad1e0afe44e4233.css?1613296105" media="all">
<link media="all" href="/typo3conf/ext/pizpalue/Resources/Public/Contrib/aos/aos.css?1600502411" rel="stylesheet" type="text/css" >
...
<script src="/typo3temp/assets/compressed/merged-3b027b1d7f1ff7962dd04ef5ab41b576.js?1613296210" type=""></script>
<script src="/typo3conf/ext/pizpalue/Resources/Public/Contrib/aos/aos.js?1600502411"></script>

Reviews 1