Project

General

Profile

Actions

Bug #25040

closed

ExtDirect API calls are splitted in single requests and slows down page loading

Added by Steffen Kamper about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
Start date:
2011-02-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The API calls are splitted in single requests. They are included as script tags with
<script src="ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.XYZ" ...

If you load the BE you have 6 single requests of these just to get the API, each request uses ajax.php and so have an own BE authentification using init.php. As they are script tags, they block the other scrupts from continue loading, and this takes a long time.

The patch get rid of this technique completely, you now only have to add the ExtDirect code, and the API is rendered inline in document.

There are 2 possibilities:
a)

$this->pageRenderer->addExtDirectCode();

this includes all necessary javascript including all available namespaces start with TYPO3

b)

$this->pageRenderer->addExtDirectCode(array(
    'TYPO3.EM',
    'TYPO3.EMSOAP',
    'TYPO3.ExtDirectStateProvider'
));

this includes all necessary javascript including all defined namespaces in the array

(issue imported from #M17592)


Files

17592.patch (18.3 KB) 17592.patch Administrator Admin, 2011-02-15 10:53
17592_v3.patch (9.96 KB) 17592_v3.patch Administrator Admin, 2011-02-17 21:54
Actions #1

Updated by Steffen Kamper about 13 years ago

committed to 4_5 rev 10484 and trunk rev 10485

Actions

Also available in: Atom PDF