Back to Joomla project (class list)

Class PreloadManager - list of methods

Joomla! Preload Manager

Extends

Package: Joomla\CMS\Document
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Document/PreloadManager.php
Project: Joomla

Method Summary

public
(\Psr\Link\EvolvableLinkProviderInterface $linkProvider = null)

PreloadManager constructor
Parameters
  • \Psr\Link\EvolvableLinkProviderInterface $linkProvider The link provider
Since
  • 4.0.0
Show source code of this method: __construct Source Code

public \Psr\Link\EvolvableLinkProviderInterface
()

Get the link provider
Returns
  • \Psr\Link\EvolvableLinkProviderInterface
Since
  • 4.0.0
Show source code of this method: getLinkProvider Source Code

public $this
(\Psr\Link\EvolvableLinkProviderInterface $linkProvider)

Set the link provider
Parameters
  • \Psr\Link\EvolvableLinkProviderInterface $linkProvider The link provider
Returns
  • $this
Since
  • 4.0.0
Show source code of this method: setLinkProvider Source Code

public void
(string $uri, array $attributes = [])

Preloads a resource.
Parameters
  • string $uri A public path
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('crossorigin' => 'use-credentials')")
Returns
  • void
Since
  • 4.0.0
Show source code of this method: preload Source Code

public void
(string $uri, array $attributes = [])

Resolves a resource origin as early as possible.
Parameters
  • string $uri A public path
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Returns
  • void
Since
  • 4.0.0
Show source code of this method: dnsPrefetch Source Code

public void
(string $uri, array $attributes = [])

Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
Parameters
  • string $uri A public path
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Returns
  • void
Since
  • 4.0.0
Show source code of this method: preconnect Source Code

public void
(string $uri, array $attributes = [])

Indicates to the client that it should prefetch this resource.
Parameters
  • string $uri A public path
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Returns
  • void
Since
  • 4.0.0
Show source code of this method: prefetch Source Code

public void
(string $uri, array $attributes = [])

Indicates to the client that it should prerender this resource.
Parameters
  • string $uri A public path
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Returns
  • void
Since
  • 4.0.0
Show source code of this method: prerender Source Code

private void
(string $uri, string $rel, array $attributes = [])

Adds a "Link" HTTP header.
Parameters
  • string $uri The relation URI
  • string $rel The relation type (e.g. "preload", "prefetch", "prerender" or "dns-prefetch")
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Returns
  • void
Since
  • 4.0.0
Show source code of this method: link Source Code

Properties Summary

protected \Psr\Link\EvolvableLinkProviderInterface
$linkProvider
The link provider
Since
  • 4.0.0

Tags Summary

Since
4.0.0