Speed up Mambo Site - Extremely useful Tip Hi all,
I have found this somewhere and thought it will be useful to all mambers.
Open up index.php file in your template directory and change the following lines as explained. <?php include ("editor/editor.php"); initEditor(); ?>
Change the above to look like: <?php if ($my->id) { include ("editor/editor.php"); initEditor(); } ?> Whats happening : Each and every time an user visits your mambo site, your template is loaded and with that, the default editor is also loaded even if the user is not logged in. We are just changing it to load the editor only when the user is logged in.
And for your reference, htmlarea2 javascript file itself is more than 45kb. ie, we are reducing our sites page size by more than 45kb and hence reducing the downloading speed of the page.
Hope this will help out lots of mambers around.... Yours Afru |