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

History 1027

Show 2 earlier messages
  1. Roman Büchler changed subject Asset VH do not get concatenated Assets from f:asset VH do not get concatenated <span data-processor="relativetime" data-value="2021-02-14T20:50:30+00:00" > 02/14/21, 20:50 </span>

  1. Roman Büchler commented <span data-processor="relativetime" data-value="2021-12-17T09:27:30+00:00" > 12/17/21, 09:27 </span>

    According to the API description (https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Assets/Index.html) concatenation isn’t needed due to the use of link header (http/2):

    > The AssetCollector helps to work with content elements as components, effectively reducing the CSS to be loaded. It leverages making use of HTTP/2 which removes the necessity to have all files concatenated into one file.

    But without using the extension http2 (https://github.com/b13/http2) the link header isn’t sent.

  2. Christian Kuhn commented <span data-processor="relativetime" data-value="2025-11-11T16:10:03+00:00" > 11/11/25, 16:10 </span>

    the asset VH’s don’t concatenate nor compress by intention.

  3. Christian Kuhn commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-11-13T10:15:08+00:00" > 11/13/25, 10:15 </span>

    Applied in changeset commit:d8acfda81605ca802e829e03bf9189bc27feea33.