Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8954723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:22:28+00:00 2026-06-15T14:22:28+00:00

In Joomla 2.5 , the scripts below are loaded automatically. <script src=/media/system/js/mootools-core.js type=text/javascript></script> <script

  • 0

In Joomla 2.5, the scripts below are loaded automatically.

<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/templates/pswedge/js/jquery.min.js" type="text/javascript" defer="defer"></script>

I don’t want to load these files. How can I remove these links?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:22:29+00:00Added an answer on June 15, 2026 at 2:22 pm

    I would not recommend you to change the core files of Joomla.But if you really need to that then you can try this:

    Step to disable the preloaded script file in joomla template.

    Step one: Using your favorite file editor, open for edit:

    /libraries/joomla/document/html/renderer/head.php

    Step one: Find this code at line 151 and update it to include the code with this :

    // Generate script file links
    foreach ($document->_scripts as $strSrc => $strAttr)
    {
        // Code to disable mootools for your site (still loads it for your admin)
    
        $ex_src = explode("/",$strSrc);
        $js_file_name = $ex_src[count($ex_src)-1];
        $js_to_ignore = array("mootools-core.js","mootools-more.js","core.js","caption.js");
        if( in_array($js_file_name,$js_to_ignore) AND substr_count($document->baseurl,"/administrator") < 1 AND $_GET['view'] != 'form')
            continue;
    
        $buffer .= $tab . '<script src="' . $strSrc . '"';
        if (!is_null($strAttr['mime']))
        {
            $buffer .= ' type="' . $strAttr['mime'] . '"';
        }
        if ($strAttr['defer'])
        {
            $buffer .= ' defer="defer"';
        }
        if ($strAttr['async'])
        {
            $buffer .= ' async="async"';
        }
        $buffer .= '</script>' . $lnEnd;
    }
    

    After saving the changes above, clear the cache that you have set and test your Joomla website and your Joomla Admin Dashboard. If you view the source code,all the predefind files are not there.

    Or

    You can try like this to hide it from index.php in template. Just put this line before the <jdoc:include type="head" /> and make necessary changes as needed to the scripts.

    <?php 
        $search = array('mootools-more.js', 'caption.js');
        // remove the js files
        foreach($this->_scripts as $key => $script) {
            foreach($search as $findme) {
                if(stristr($key, $findme) !== false) {
                    unset($this->_scripts[$key]);
                }
            }
        }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added this script <script type=text/javascript> var x = 2; //console.log('Not broken'); $('.email_image li:gt(0)').css({opacity:0});
I developed a script which give me the text of a Joomla article from
I install Joomla 2.5.4 plugin System - Twitter Roll and set basic configuration which
I created a script outside of Joomla that can successfully generate a Joomla password:
I want to grab the User Object in Joomla in another PHP script. Anway,
I am writing an install script for a Joomla! 1.7 component. How can I
I'm using joomla site, and Forced to use extra java script. My Question is:
I'm running a PHP script in Jumi in a Joomla article that outputs html
I've been trying to get PHPExcel to work with my Joomla. If the script
All, I am writting a php script that runs as part of a joomla

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.