remove unneeded JS and CSS files

mdma 04 Oct, 2015
Hello,
I have my forms loading files the form doesnt need:

/libraries/cegcore/assets/jquery/jquery.js
/libraries/cegcore/assets/gplugins/gsliders/gsliders.js
/libraries/cegcore/assets/gplugins/gmodal/gmodal.js
/libraries/cegcore/assets/gplugins/gtabs/gtabs.js

how to remove the best way?
I already tried eorisis jquery plugin, plugin order last, but cant get it to remove the files.
So maybe core hack?
What is suggested?
GreyHead 04 Oct, 2015
Hi mdma,

The jQueryEasy plug-in should let you manage the instances of jQuery; for the other files I found this code that appears to be loading them - you can try commenting the lines out but there may be side-effects.

See line 274 or threabouts of /libraries/cegcore/libs/app_j.php
		$doc->_('gtabs');
		$doc->_('gsliders');
		$doc->_('gmodal');
		$doc->_('gdropdown');

Bob
This topic is locked and no more replies can be posted.