Bug #86982
closed
Confirmed, the async attribute is absent; it works on 8.7.20
- Status changed from New to Needs Feedback
sorry I can't reproduce it on current master
page {
includeJS {
jsFile = fileadmin/templates/file1.js
jsFile.async = 1
}
}
this leads to
<script src="/fileadmin/templates/file1.js?1529777566" type="text/javascript" async="async"></script>
works on 8, 9 and current master
I can confirm the findings of @Stefanos Karasavvidis , but I also found a coupe of behaviors:
1) If you write:
config.concatenateJs = 1
page {
includeJS {
jsFile = fileadmin/test.js
jsFile.async = 1
jsFile2 = fileadmin/testb.js
}
}
the async attribute is absent (seems reasonable)
but
2) If you write:
config.concatenateJs = 1
page {
includeJS {
jsFile = fileadmin/test.js
jsFile.async = 1
}
}
The async attribute is still present only on TYPO3 9.5 while is absent on 8.7 and current master
Can someone confirm?
- Related to Bug #87444: 'config.concatenateJs = 1' async feature does not work added
- Related to Bug #83476: Few attributes are missing when concatenating JS files added
- Status changed from Needs Feedback to Closed
Riccardo De Contardi wrote:
2) If you write:
[...]
The async attribute is still present only on TYPO3 9.5 while is absent on 8.7 and current master
Can someone confirm?
No, for master and 9.5 the behaviour is the same for me since https://review.typo3.org/c/Packages/TYPO3.CMS/+/57130 - also have a look at the tests there for a documentation of the behaviour.
As this is working on both master and 9.5 as intended, and Riccardo confirmed for 9.5 I'm going to close this issue now.
Also available in: Atom
PDF