static function loadCarousel_touch() { if (self::$jqctouchLoaded) { return; } $doc = JFactory::getDocument(); $doc->addScript(JURI::root(true) . '/media/syw/js/carousel/jquery.touchSwipe.min.js'); self::$jqctouchLoaded = true; }