public function script($onload = null, $render = null, $hl = null, array $attributes = array())
    {
        array_push($attributes, 'async', 'defer');
        return HtmlBuilder::script($this->scriptSrc($onload, $render, $hl), null, $attributes);
    }
public function script($onload = null, $render = null, $hl = null, array $attributes = array())
    {
        array_push($attributes, 'async', 'defer');
        return HtmlBuilder::script($this->scriptSrc($onload, $render, $hl), null, $attributes);
    }
public function script ( $ onload = null , $ render = null , $ hl = null , array $ attributes = array ( ) ) { array_push ( $ attributes , 'async' , 'defer' ) ; return HtmlBuilder :: script ( $ this -> scriptSrc ( $ onload , $ render , $ hl ) , null , $ attributes ) ; }
Generates a script tag based on the options.

@param  string $onload     The name of the JavaScript function to be called on load.
@param  string $render     When to render the widget ('explicit' or 'onload').
@param  string $hl         The language to be used for the widget.
@param  array  $attributes Additional attributes for the tag.
@return string
Generates a script tag based on the options .