src/App.php
public function requireJS($url, $isAsync = false, $isDefer = false)
    {
        $this->html->template->appendHTML('HEAD', $this->getTag('script', ['src' => $url, 'defer' => $isDefer, 'async' => $isAsync], '')."\n");

        return $this;
    }
public function requireJS($url, $isAsync = false, $isDefer = false)
    {
        $this->html->template->appendHTML('HEAD', $this->getTag('script', ['src' => $url, 'defer' => $isDefer, 'async' => $isAsync], '')."\n");

        return $this;
    }
public function requireJS ( $ url , $ isAsync = false , $ isDefer = false ) { $ this -> html -> template -> appendHTML ( 'HEAD' , $ this -> getTag ( 'script' , [ 'src' => $ url , 'defer' => $ isDefer , 'async' => $ isAsync ] , '' ) . "\n" ) ; return $ this ; }
Adds additional JS script include in aplication template.

@param string $url
@param bool   $isAsync Whether or not you want Async loading.
@param bool   $isDefer Whether or not you want Defer loading.

@return $this
Adds additional JS script include in aplication template .