PHP Class FluidTYPO3\Vhs\ViewHelpers\Asset\PrefetchViewHelper

Enables the special tag which instructs the browser to start prefetching DNS records for every domain listed in the domains attribute of this ViewHelper. Prefetching starts as soon as the browser becomes aware of the tag - to optimise even further, you may wish to control the output buffer's size to deliver your site HTML in chunks, the first chunk being the one containing this ViewHelper. Note that the web server daemon may send headers which prevent this prefetching and that these headers can be added in many ways. If prefetching does not work, you will need to inspect the HTTP headers returned from the actual environment. Or you may prefer to simply add force="TRUE" to this tag - but beware that this will affect the entire document's behaviour, not just for this particular set of domain prefetches. Once force-enabled this setting cannot be disabled (unless done so by manually adding an additional meta header tag as examplified by the build() method. ### Example usage: See: https://developer.mozilla.org/en-US/docs/Controlling_DNS_prefetching
Inheritance: extends AbstractAssetViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$type string

Public Methods

Method Description
build ( ) : string
initializeArguments ( ) : void
render ( ) : void

Method Details

build() public method

public build ( ) : string
return string

initializeArguments() public method

public initializeArguments ( ) : void
return void

render() public method

public render ( ) : void
return void

Property Details

$type protected_oe property

protected string $type
return string