PreloadManagerInterface

Joomla! Preload Manager Interface

since

4.0.0

Methods

dnsPrefetch

Resolves a resource origin as early as possible.

dnsPrefetch(string $uri, array $attributes = array()) : void
since

4.0.0

Arguments

$uri

stringA public path

$attributes

arrayThe attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")

getLinkProvider

Get the link provider

getLinkProvider() : \Psr\Link\EvolvableLinkProviderInterface
since

4.0.0

Response

\Psr\Link\EvolvableLinkProviderInterface

preconnect

Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).

preconnect(string $uri, array $attributes = array()) : void
since

4.0.0

Arguments

$uri

stringA public path

$attributes

arrayThe attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")

prefetch

Indicates to the client that it should prefetch this resource.

prefetch(string $uri, array $attributes = array()) : void
since

4.0.0

Arguments

$uri

stringA public path

$attributes

arrayThe attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")

preload

Preloads a resource.

preload(string $uri, array $attributes = array()) : void
since

4.0.0

Arguments

$uri

stringA public path

$attributes

arrayThe attributes of this link (e.g. "array('as' => true)", "array('crossorigin' => 'use-credentials')")

prerender

Indicates to the client that it should prerender this resource.

prerender(string $uri, array $attributes = array()) : void
since

4.0.0

Arguments

$uri

stringA public path

$attributes

arrayThe attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")

setLinkProvider

Set the link provider

setLinkProvider(\Psr\Link\EvolvableLinkProviderInterface $linkProvider) : $this
since

4.0.0

Arguments

$linkProvider

\Psr\Link\EvolvableLinkProviderInterfaceThe link provider

Response

$this