joomla_mootoolsJoomla slows down page loading times by loading the full uncompressed Mootools 1.1 Javascript library.

Here's an easy way to speed it up...

 

It's alot faster to load a compressed script directly from google rather than load it from your own server.

To do this we need to overide the loading of the built in script in your templates index.php file

Just above the line:

<jdoc:include type="head" />

Insert the following code:

<?php
$document =&JFactory::getDocument();
unset($document->_scripts[$this->baseurl . '/media/system/js/mootools.js']);
?>

<script type="text/javascript" src="http://www.google.com/jsapi"></script><br /><script type="text/javascript">google.load("mootools", "1.1.2");</script></code></p> <p>If you now check the source code of your site you will see the following:</p> <pre id="line1"><script type="text/javascript" src="/<a href="view-source:http:/www.google.com/jsapi">http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("mootools", "1.1.2");</script></pre> <p> </p> <p>The compressed version of the script is 18kb rather than about 80kb.</p> <p>By loading the script directly from google your browser can download the script at the same time as it downloads your sites content.</p> <h3 class="title">Some more speed tips are:

Stopping mootools from loading

Adding Leverage Browser Caching to .htaccess

Add gzip compression through .htaccess

Category: Joomla

Newsletter Signup

Latest Posts

Google+ Timeline Feed for your Website Google+ Timeline Feed for your Website 2012-05-11 - I was asked earlier today to create a Google+ widget for a website to replace a twitt... More detail
Run Facebook Messenger on Windows Vista Run Facebook Messenger on Windows Vista 2012-04-19 - Facebook has just released it's new messenger for windows but it only runs on Windo... More detail
Translate K2store Product Attributes with Joomfish Translate K2store Product Attributes with Joomfish 2011-11-03 - If you have a K2store and your site is in multiple languages, you might have found th... More detail
French Translations for K2store French Translations for K2store 2011-11-02 - I have been working recently with the K2 component/plugin K2store. As a simple sho... More detail
How I Upgraded to Joomla 1.7 How I Upgraded to Joomla 1.7 2011-09-25 - Inspired by Robert Vining over at www.joomstew.com and the fact that I am building mo... More detail

Twitter Stuff