How to manually combine JS files? - Joomla! Forum - community, help and support
anybody know how this? aware there components yet learn how manually it.
i combined them one, yet problem how them (mootools, caption, core) replaced combined? hack behavior.php file , comment them out , reference new javascript template this:
$document = &jfactory::getdocument();
$document->addscript('/media/system/js/combined-js.js');
i got files mootools-, caption, , core.js disappear, wasn't working.
i combined them one, yet problem how them (mootools, caption, core) replaced combined? hack behavior.php file , comment them out , reference new javascript template this:
$document = &jfactory::getdocument();
$document->addscript('/media/system/js/combined-js.js');
i got files mootools-, caption, , core.js disappear, wasn't working.
it indeed recommended skip using plugin kind of stuff because waste cpu power manually , once , all.
however, mean "it wasn't working"? method seems correct. have tried enable javascript console in chrome/firebug , check errors? describe better problem have. also, have checked new merged js 1 included in html header?
however, mean "it wasn't working"? method seems correct. have tried enable javascript console in chrome/firebug , check errors? describe better problem have. also, have checked new merged js 1 included in html header?
Comments
Post a Comment