public addJavascriptFile ( string $uri, string $version = null, string $type = 'text/javascript', boolean $defer = false, boolean $async = false ) | ||
$uri | string | A path definition understood by parsePath, e.g. media://com_example/js/foo.js |
$version | string | (optional) Version string to be added to the URL |
$type | string | MIME type of the script |
$defer | boolean | Adds the defer attribute, see above |
$async | boolean | Adds the async attribute, see above |