Project

General

Profile

Actions

Bug #98927

open

JS async option of includeJS broke by file in includeJSFooter

Added by Christian Toffolo over 1 year ago. Updated 12 months ago.

Status:
Under Review
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2022-10-26
Due date:
% Done:

0%

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

Description

To reproduce, have a Typoscript like:

page {
  includeJS {
    headerJSfile = EXT:example/Resources/Public/JavaScript/headerJSfile.js
    headerJSfile.async = 1
  }
  includeJSFooter {
    footerJSfile = EXT:example/Resources/Public/JavaScript/footerJSfile.js
  }
}

Expected behavior it a HTML code like:
<script src="/typo3temp/assets/compressed/merged-e942e6f0ca1ee79f54a389342a8850b9-78533bc4645ca634f7c62a6bbc42edef.js?1665838235" async="async"></script>
Instead async="async" is not present because of the file configured in includeJSFooter.

Actions

Also available in: Atom PDF