[solved] How to disable unneeded scripts in joomla 3.6 (img.caption js.migrate...)
Written by Admin Saturday, 29 October 2016 14:45To disable scripts you can insert here the php code in the head pattern
<?php unset($this->_scripts[$this->baseurl.'/media/system/js/mootools-core.js'], $this->_scripts[$this->baseurl.'/media/system/js/mootools-more.js'], $this->_scripts[$this->baseurl.'/media/system/js/core.js'], $this->_scripts[$this->baseurl.'/media/jui/js/bootstrap.min.js'], $this->_scripts[$this->baseurl.'/media/jui/js/jquery.min.js'], $this->_scripts[$this->baseurl.'/media/jui/js/jquery-noconflict.js'], $this->_scripts[$this->baseurl.'/media/jui/js/jquery-migrate.min.js'], $this->_scripts[$this->baseurl.'/media/system/js/caption.js']); if( isset($this->_script['text/javascript']) ) { $this->_script['text/javascript'] = preg_replace('\.addEvent\(\'load\',\s*(\'img.caption\'\);\s*}\);\s*%', '', $this->_script['text/javascript']); if( empty($this->_script['text/javascript']) ) unset( $this->_script['text/javascript'] ); }; ?>
Latest from Admin
- [solved] How to delete text symbol from php line?
- [solved] How to delete all version from cource code in css & js files with your theme
- [solved] Deprecated: Methods with the same name as their class will not be constructors ... www/plugins/content/jw_sigpro/jw_sigpro.php on line 19
- Apple does not specifically show its announcements in other browsers. #appleshit
- [Schema.org] Micro-markup menu items