Feature #28382
closed
Epic #55575: Streamline JavaScript Code in the TYPO3 Backend
Allow asynchronous JavaScript files
Added by Xavier Perseguers over 13 years ago.
Updated about 6 years ago.
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>
- Subject changed from Allow asynchronously JavaScript files to Allow asynchronous JavaScript files
- Priority changed from Should have to Could have
- Target version deleted (
4.6.0-beta1)
- Parent task set to #55575
Come on guys... it should be possible. Google Page Speed complains about the current way page.includeJS includes javascript.
- 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
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
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
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
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
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
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
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
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
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
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.
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
Any news to "how can I load the compress (minify) files async in TYPO3?"?
Best
Chris
- Status changed from Resolved to Closed
Also available in: Atom
PDF