Feature #28382
closedEpic #55575: Streamline JavaScript Code in the TYPO3 Backend
Allow asynchronous JavaScript files
100%
Description
Instead of evaluating Google Analytics code right away, the official snippet allows asynchronous evaluation, if browser supports it:
<script type="text/javascript"> // code stripped (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
Add new option 'async' to PAGE.includeJS.<array>
Updated by Xavier Perseguers over 13 years ago
- Subject changed from Allow asynchronously JavaScript files to Allow asynchronous JavaScript files
Updated by Xavier Perseguers over 13 years ago
- Priority changed from Should have to Could have
Updated by Xavier Perseguers over 13 years ago
- Target version deleted (
4.6.0-beta1)
Updated by Mario Colombo over 10 years ago
Come on guys... it should be possible. Google Page Speed complains about the current way page.includeJS includes javascript.
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33984
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34000
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34259
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34000
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34263
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34263
Updated by Gerrit Code Review about 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34000
Updated by Gerrit Code Review about 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34000
Updated by Gerrit Code Review almost 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34000
Updated by Gerrit Code Review almost 10 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34000
Updated by Arnd Messer almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e6e9b5318fc95446ce4a4477263b0862fb953019.
Updated by Clemens Riccabona over 9 years ago
great, but as it seems to me, completely useless ATM if you use concatenation feature AFAICS.
and concatenation is also recommended by google.
just mention the latter to prevent anoying "concat-minify-compress" debate on principles.
Updated by Sebastian Schmal over 8 years ago
how can I load the compress (minify) files async in TYPO3?
the normal way:
includeJSFooterlibs { jquery = fileadmin/JS/jquery.min.js jquery { async = 1 } }
then i Compression all File. How can i load the Compression-FILE in async Modus?
Thanks
Updated by Christoph Werner almost 8 years ago
Any news to "how can I load the compress (minify) files async in TYPO3?"?
Best
Chris