ADVERTISEMENT
Add custom attribute in Joomla 3.x addScript

This tutorial will explain you, how add custom attributes in Joomla 3.x addScript() Find the code below $doc = JFactory::getDocument(); $doc->addScript(JURI::root(true) . '/libraries/gantry/libs/google-code-prettify/prettify.js', array(), array('data-cfasync' => 'false')); Find the detailed explanation about the above code....

Read more