TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _feature-28382:
|
||||
|
||||
========================================================
|
||||
Feature: #28382 - Add async property to JavaScript files
|
||||
========================================================
|
||||
|
||||
See :issue:`28382`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
Add a property `async="async"` to JavaScript files via TypoScript
|
||||
|
||||
`page.includeJSlibs.<array>.async = 1`
|
||||
|
||||
This patch affects the TypoScript PAGE properties
|
||||
|
||||
* includeJSLibs
|
||||
* includeJSFooterlibs
|
||||
* includeJS
|
||||
* includeJSFooter
|
||||
|
||||
Usage:
|
||||
------
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
page {
|
||||
includeJS {
|
||||
jsFile = /Path/To/jsFile.js
|
||||
jsFile.async = 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.. index:: TypoScript, JavaScript, Frontend
|
||||
Reference in New Issue
Block a user