PreloadManager
Implements PreloadManagerInterfaceJoomla! Preload Manager
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
PreloadManager constructor
__construct(\Psr\Link\EvolvableLinkProviderInterface linkProvider = null) :
since |
4.0.0 |
---|
Arguments
- linkProvider
EvolvableLinkProviderInterface
The link provider
Response
mixed
dnsPrefetch
Resolves a resource origin as early as possible.
dnsPrefetch( uri, mixed||string|int attributes = []) :
since |
4.0.0 |
---|
Arguments
- uri
string
A 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
link
Adds a "Link" HTTP header.
link( uri, rel, mixed||string|int attributes = []) :
since |
4.0.0 |
---|
Arguments
- uri
string
The relation URI- rel
string
The relation type (e.g. "preload", "prefetch", "prerender" or "dns-prefetch")- attributes
array<string|int, mixed>
The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Response
void
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
string
A 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
string
A 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
string
A 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
string
A 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
EvolvableLinkProviderInterface
The link provider
Response
$this
Properties
linkProvider
The link provider
since |
4.0.0 |
---|
Type(s)
EvolvableLinkProviderInterface