Ctrl+V Game
-
- Low flying mountains just to the right.
- Posts: 5093
- Joined: Tue Aug 16, 2005 8:34 pm
- Location: localhost
- Contact:
- froggyboy604
- Anime music gaming Fanatic
- Posts: 37650
- Joined: Thu Aug 18, 2005 11:28 pm
- Contact:
-
- MXP Ub€rness
- Posts: 1052
- Joined: Wed Sep 03, 2008 11:34 pm
- froggyboy604
- Anime music gaming Fanatic
- Posts: 37650
- Joined: Thu Aug 18, 2005 11:28 pm
- Contact:
-
- MXP Ub€rness
- Posts: 1052
- Joined: Wed Sep 03, 2008 11:34 pm
- froggyboy604
- Anime music gaming Fanatic
- Posts: 37650
- Joined: Thu Aug 18, 2005 11:28 pm
- Contact:
I just remove some scripts froom my Joomla site by adding a few lines to my Joomla default template index.php file.
I added these lines.
//remove mootools.js and caption.js
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
It looks like this in my template index.php file.
<?php
//remove mootools.js and caption.js
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
Now my page loads in 3-4 seconds instead of 6 seconds.
I learned how to remove from Joomla mootools.js and caption.js from Joomla1.5 at : http://www.eboga.org/cms/joomla/how-to- ... mla15.html
I added these lines.
//remove mootools.js and caption.js
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
It looks like this in my template index.php file.
<?php
//remove mootools.js and caption.js
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
Now my page loads in 3-4 seconds instead of 6 seconds.
I learned how to remove from Joomla mootools.js and caption.js from Joomla1.5 at : http://www.eboga.org/cms/joomla/how-to- ... mla15.html
-
- MXP Ub€rness
- Posts: 1052
- Joined: Wed Sep 03, 2008 11:34 pm