News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Disabling as much unused scripts and styles as possible

Started by Kuubs, January 17, 2024, 11:43:06 AM

Previous topic - Next topic

Kuubs

Hello,

I'm trying to optimize my website. And I'd like to disable as much plugins and scripts as possible, I'm not using most of them.

- JQuery UI (Is this possible to disable?)
- Autocomplete.js (I dont use this)
- vmprices.js
- update_cart.js

The vmprices and update_cart i'd like to disable except for the productdetails page. Should I just use the Joomla functionality to remove these scripts from the loading:

unset($this->_scripts['/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.2.pack.js?vmver=1.3.4.2']);

Or is it possible to disable these scripts another way thats maybe more efficient?

EDIT:

Ok you can disable a lot in the configuration > template tab. In the modules you can disable for example jPrice and the imort of the cart. Unfortunately this will be overridden when an update happens.