PreloadManager

Implements PreloadManagerInterface

Joomla! Preload Manager

since

4.0.0

package

Application

Methods

__construct

PreloadManager constructor

__construct(\Psr\Link\EvolvableLinkProviderInterface linkProvider = null) : mixed
since

4.0.0

Arguments

linkProvider

\Psr\Link\EvolvableLinkProviderInterfaceThe link provider

Response

mixed

dnsPrefetch

Resolves a resource origin as early as possible.

dnsPrefetch(string uri, array attributes = []) : 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 = []) : 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 = []) : 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 = []) : 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 = []) : 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

Properties

linkProvider

The link provider

since

4.0.0

Type(s)

\Psr\Link\EvolvableLinkProviderInterface