Project

General

Profile

Actions

Bug #72704

closed

Global RequireJS modules must not be loaded multiple times

Added by Markus Klein almost 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Category:
Backend API
Target version:
Start date:
2016-01-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

There are several JS modules which are subject to be loaded only once in a context (eg the BE).
These modules must also be loadable in other contexts like popups and iframes.

Since the PHP code usually does not know in which context is gets loaded (module frame or popup), it will of course always load the JS modules, which is ok.
The modules, though, must check if it has already been loaded a more global scope and must then return this very instance.

The basic principle has already been implemented for Storage.js and can be copied for other JS modules.

The localization labels, currently created dynamically in PHP, are a special case, which should be handled in a dedicated issue.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #72739: ImageManipulation wizard is brokenClosedFrank Nägler2016-01-15

Actions
Actions

Also available in: Atom PDF