Feature #39622
closedinclude RequireJS in the core
100%
Description
RequierJS (http://requirejs.org) is a JavaScript file and model loader.
It can be used to load JS file and handle dependencies between those files in the backend and in extensions. Also multiple jQuery versions can be loaded and used.
Files
Updated by Daniel Sattler over 12 years ago
- File T3X_example_javascript-0_0_0-z-201208101419.t3x T3X_example_javascript-0_0_0-z-201208101419.t3x added
here is a little example extension to see RequireJS in action
Updated by Benni Mack over 11 years ago
Adds the JS loader "RequireJS" to the TYPO3 core, accessible
for the TYPO3 Frontend and Backend in the PageRenderer
class.
Additionally, defined AMD modules can be loaded
by RequireJS on page load. This way, the whole JS code
in the core can be moved to standard AMD modules
with dependencies.
The shipped jQuery version already puts itself in a AMD
module named "jquery", so it can be used in all AMD
modules.
All created AMD modules should be named
"TYPO3.CMS.[PackageName].[ModuleName]" so the
file name is resolved automatically as
"EXT:PackageName/Resources/Public/JavaScript/ModuleName.js"
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18924
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18924
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18924
Updated by Gerrit Code Review over 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18924
Updated by Benni Mack over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b9129bf2d5374935760e1ac33bb7dbf1874b3ac0.