Issue Bug Closed

#98927JS async option of includeJS broke by file in includeJSFooter

Christian Toffolo 10/26/22, 11:18 updated 07/29/26, 13:24

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.

Reviews 2