Thinking Web Publishing? Think www.YouNeedItAll.com!
Custom Website Design and re Design, Custom Website Development, Social Media Networking, B2B Networking, Search Engine Optimizations and Online Marketing.
Custom Website Design and re Design, Custom Website Development, Social Media Networking, B2B Networking, Search Engine Optimizations and Online Marketing.
Website Search
Social Media Networking
Geo Twitter Map
See who use Twitter in your area
Visit Our Social Networking Lab
Business Networking and B2B Social Media Networking Clients and Partners:
Personalize Your Business
Web Templates Sale

Web design agency in Syracuse,
Web Templates Sale
How to Remove mootools.js
| How to remove mootools.js |
| Web Development and Web Technology |
| Written by Nikolay Gul |
|
I will start with easiest way to remove mootools.js and caption.js from you templates. Just comment or remove them... However there are some other more fancy ways: For most Joomla 1.5 template, they don't use mootools.js and caption.js at all. These two JavaScript libraries are mainly used in the administrator control panal. Their size are about 75K, and decrease the response speed of Joomla site. Here I introduce a method to remove the two JavaScript libs. To make sure your Joomla site have the two scripts in the front site, you can look you site's html source code and will find the following code: To remove the above javascript's import, you just need to add the following code at the top of your template's index.php file.
getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
?>
Clear cache and go back to you front site's source code, you will find the mootools.js and caption.js gone.
|





