When I build a site I want to remove any unneeded external JavaScript files in the html to help improve the performance of the site.
So when I create a basic content page using an article layout with no modules I am surprised to see these 3 lines
<code>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>
</code>
This happens on both joomla 1.5 and 1.6 When I looked around the web for a solution I keep finding the answer to be use regular expression on the final output to remove it. While this will remove it, I wanted to understand why this is added. It should in theory only be added when it is needed. If I add a module that does need mootools then I do not want to be removing the script file.
It will break the module. Not being a core hack is probably the only good thing about this method. Since Joomla will only add files that are told to be included, so I decided to work out why they were being told to be included when nothing on the page needs them.
For years I have been playing around with the main .htaccess file for Joomla and over time have created quite a beast of a file.
Not only does this .htaccess file provide the default search engine friendly URL functions as you'd expect with Joomla, it also applies a huge amount of security settings that can be applied in the .htaccess file as well as a set of optimisation and custom configuration settings to make your server work the way you want it to and now I'm going to share it with the Joomla community.

Awesomely Creative Websites Designed for Joomla!
Sick of seeing hundreds of Joomla! websites that all look the same? Or perhaps you're using a premade Joomla template and need a uniquely designed website.
Ask us to create you a perfectly unique Joomla web design for you.
Our team of creative web designers will create your perfect website from scratch that not only reflect your company and branding but also convert traffic into leads and sales or support and inform your web users and customers.
Creating the perfectly designed website with Joomla is our specialty and we'll love to hear from you.
Have a look at some of the recent additions to the portfolio to see what Joomla! development projects we've been tackling.
Joomla design project highlights:
Design and development of a web accessible Joomla website.
The latest update for the Joomla 1.5.x series has just been released.
The Joomla 1.5.x series is coming to end of life very soon so this will be one of the last updates before support for the series comes to an end.
For web administrators running 1.5.x websites this is a important update with a high security risk update.
Design and development for non profit organisations.
Simple CMS for not for profit organisation.
Awesome e-commerce solution built with Joomla and VirtueMart.
Visually creative solution for the building industry.
Here at PB Web Development we love using the JoomlArt T3 Framework. We've been using the framework to develope websites since early 2010.
If you need any customisation or development using the JoomlArt T3 framework then we're the development team for you.



Social Networks