ViewHelper: Asset.script
TYPO3
Show in appDescription
The Fluid ViewHelper `f:asset.script` is used to register JavaScript assets directly in Fluid templates. TYPO3 centrally manages registered scripts through the AssetCollector, allowing structured and reusable frontend asset integration without directly embedding script tags in templates.
Goals
- I know the purpose of the `f:asset.script` ViewHelper.
- I can register external JavaScript files in Fluid templates.
- I understand why assets require unique identifiers.
- I know how TYPO3 prevents duplicate JavaScript inclusion.
- I can configure loading attributes such as async, defer, type, and nomodule.
Maintainer
Oliver Thiele
Web Development Oliver Thiele