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
Afficher le fichier Open project: fluidtypo3/vhs

Protected Properties

Свойство Type Description
$type string

Méthodes publiques

Méthode Description
build ( ) : string
initializeArguments ( ) : void
render ( ) : void

Method Details

build() public méthode

public build ( ) : string
Résultat string

initializeArguments() public méthode

public initializeArguments ( ) : void
Résultat void

render() public méthode

public render ( ) : void
Résultat void

Property Details

$type protected_oe property

protected string $type
Résultat string