Core/Framework/Page/Head/Javascript/Javascript.php
public function &block($script, $defer = false)
    {
        $script = new JavascriptObject();

        $script->setType('block');
        $script->setScript($script);
        $script->setDefer($defer);

        $this->add($script);

        return $script;
    }
public function &block($script, $defer = false)
    {
        $script = new JavascriptObject();

        $script->setType('block');
        $script->setScript($script);
        $script->setDefer($defer);

        $this->add($script);

        return $script;
    }
public function & block ( $ script , $ defer = false ) { $ script = new JavascriptObject ( ) ; $ script -> setType ( 'block' ) ; $ script -> setScript ( $ script ) ; $ script -> setDefer ( $ defer ) ; $ this -> add ( $ script ) ; return $ script ; }
Blocks with complete code.
Use this for conditional scripts!

@param string $script
@param bool $defer

@return JavascriptObject
Blocks with complete code . Use this for conditional scripts!