PreloadManagerInterface
Joomla! Preload Manager Interface
| since |
4.0.0 |
|---|---|
| package |
Joomla CMS |
Methods
dnsPrefetch
Resolves a resource origin as early as possible.
dnsPrefetch( uri, mixed||string|int attributes = []) :
| since |
4.0.0 |
|---|
Arguments
- uri
stringA public path- attributes
array<string|int, mixed>The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Response
void
getLinkProvider
Get the link provider
getLinkProvider() : \Psr\Link\EvolvableLinkProviderInterface
| since |
4.0.0 |
|---|
Response
EvolvableLinkProviderInterface
preconnect
Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
preconnect( uri, mixed||string|int attributes = []) :
| since |
4.0.0 |
|---|
Arguments
- uri
stringA public path- attributes
array<string|int, mixed>The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Response
void
prefetch
Indicates to the client that it should prefetch this resource.
prefetch( uri, mixed||string|int attributes = []) :
| since |
4.0.0 |
|---|
Arguments
- uri
stringA public path- attributes
array<string|int, mixed>The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Response
void
preload
Preloads a resource.
preload( uri, mixed||string|int attributes = []) :
| since |
4.0.0 |
|---|
Arguments
- uri
stringA public path- attributes
array<string|int, mixed>The attributes of this link (e.g. "array('as' => true)", "array('crossorigin' => 'use-credentials')")
Response
void
prerender
Indicates to the client that it should prerender this resource.
prerender( uri, mixed||string|int attributes = []) :
| since |
4.0.0 |
|---|
Arguments
- uri
stringA public path- attributes
array<string|int, mixed>The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Response
void
setLinkProvider
Set the link provider
setLinkProvider(\Psr\Link\EvolvableLinkProviderInterface linkProvider) :
| since |
4.0.0 |
|---|
Arguments
- linkProvider
EvolvableLinkProviderInterfaceThe link provider
Response
$this