How to add external javascript and stylesheet in joomla component
This is very easy step you can add external javascript or css in head tag of the page. According to seo you cannot add javascript/css in the middle of the page.
So here is the code snippet.
$document =& JFactory::getDocument();
$document->addStyleSheet($stylesheeturl.’styles.css’);
$document->addScript($jsurl.’scripts.js’);
Have a happy w3c validate page ![]()

Leave a Reply