As the title said,
Is there any ways to do the loading for MooTools and jQuery from google library ?
I am using Joomla 3.1.1 with StartUp template v3.8
//Custom for JS Load
if(JFactory::getUser()->guest == 1){
JHtml::_('behavior.framework', true);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
if (isset($this->_script['text/javascript']))
{
$this->_script['text/javascript'] = preg_replace('%window\.addEvent\(\'load\',\s*function\(\)\s*{\s*new\s*JCaption\(\'img.caption\'\);\s*}\);\s*%', '', $this->_script['text/javascript']);
if (empty($this->_script['text/javascript']))
unset($this->_script['text/javascript']);
}
}
//EOF Custom JS Load
<script src="//cdnjs.cloudflare.com/ajax/libs/mootools-more/1.4.0.1/mootools-more-yui-compressed.js" type="text/javascript"></script>