Bug #23442
closedhtmlArea RTE may load extJS debug script in FE which makes page loading slow
0%
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
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.
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.
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.
Updated by Stanislas Rolland about 14 years ago
Patch committed to SVN TYPO3core trunk (revision 8689) and branch TYPO3_4-4 (revision 8690).