Project

General

Profile

Actions

Bug #23442

closed

htmlArea RTE may load extJS debug script in FE which makes page loading slow

Added by Christian Buelter about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-08-24
Due date:
% Done:

0%

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

Description

RTE loads debug script in the frontend which makes the page quite slow.

I guess this is more a missing configuration option than a bug.

In the frontend the RTE loads ext-all-debug.js which is about 2.5 MB and takes more than 3 seconds on my installation (see screenshot).

I tried

page.javascriptLibs.ExtJs.debug = 1

but then the RTE doesn't load at all.
(issue imported from #M15547)


Files

rte-ext-all-debug.jpg (16.4 KB) rte-ext-all-debug.jpg Administrator Admin, 2010-08-24 15:33
rte_patch_15547.diff (644 Bytes) rte_patch_15547.diff Administrator Admin, 2010-08-25 09:51
rtehtmlarea_bugfix_15547_trunk.patch (2.34 KB) rtehtmlarea_bugfix_15547_trunk.patch Administrator Admin, 2010-08-25 18:48
Actions #1

Updated by Stanislas Rolland about 14 years ago

The RTE loads ext-all-debug.js if script compression is disabled in the rtehtmlarea EM configuration.

For normal operations, you should not disable compressed scripts. Compressed scripts will also load faster.

The option is there only for troubleshooting.

Actions #2

Updated by Christian Buelter about 14 years ago

Thanks for that information.

I discovered that the rte enables the debug script by default if no extension configuration is set at all.

That means you will always have to click the "UPDATE"-Button in the extension manager at least once.

Since the "enableCompressedScripts" is set by default in the extension manager, I would propose to enable that option when no extension configuration is available.

I attached a patch doing this for the debug function.

Actions #3

Updated by Stanislas Rolland about 14 years ago

Thanks for investigating this. However, $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->ID] is always an array, therefore the patch will not work.

I am attaching a new patch that will ensure that the default value is applied, and thus, script compression enabled, even if the extension configuration was never updated.

I will also update the manual.

Actions #4

Updated by Stanislas Rolland about 14 years ago

Patch committed to SVN TYPO3core trunk (revision 8689) and branch TYPO3_4-4 (revision 8690).

Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF