Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-07-22
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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>


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #62023: Allow script tags to have custom attributesClosed2014-10-03

Actions
Related to TYPO3 Core - Feature #75858: Async-option for config.concatenateJsRejected2016-04-22

Actions
Actions #1

Updated by Xavier Perseguers over 13 years ago

  • Subject changed from Allow asynchronously JavaScript files to Allow asynchronous JavaScript files
Actions #2

Updated by Xavier Perseguers over 13 years ago

  • Priority changed from Should have to Could have
Actions #3

Updated by Xavier Perseguers over 13 years ago

  • Target version deleted (4.6.0-beta1)
Actions #4

Updated by Daniel Siepmann almost 11 years ago

  • Parent task set to #55575
Actions #5

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.

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

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

Actions #13

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

Actions #14

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

Actions #15

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

Actions #16

Updated by Arnd Messer almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #17

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.

Actions #18

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

Actions #19

Updated by Christoph Werner almost 8 years ago

Any news to "how can I load the compress (minify) files async in TYPO3?"?
Best
Chris

Actions #20

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF