how to stop loading default menu scripts

Professional Joomla social template with metro design and JomSocial extension support.
Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Wed Apr 05, 2017 3:10 pm
Reply with quote
Report this post
greetings, please support disabling the menu scripts and other css data load for default menu. because of its weeknises in working with big menu structure and its look I decided to load in the menu position other module http://verticalmenu.demo.offlajn.com please advice hiw to avoid loading unused scripts and css from old default gavick menu.
User avatar
Gold Boarder

teitbite
Sat Apr 08, 2017 1:58 pm
Reply with quote
Report this post
Hi

Script and styles are dedicated to a html structure, so it will not affect any module You will use instead. This means it's not neccessary to remove them, but if You wish delete lines:

Code: Select all
$this->API->addCSS($this->API->URLtemplate() . '/css/menu/menu.css');

$this->API->addJS($this->API->URLtemplate() . '/js/gk.menu.js');


from /layouts/blocks/head.php
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.