BOOMR.plugins. Akamai


This plugin will house logic specific to Akamai infrastructure.

This plugin responds to the dns_prefetch_url parameter in the Akamai section of the config response. When dns_prefetch_url parameter is present in the config response, this plugin will append a Link element to perform a DNS prefetch against he host specified in the config request. This request would only be done after the page load event so as to not interfere with the page's intended behavior.

Beacon Parameters

This plugin does not add any parameters to the beacon

Methods


init(config)

Initializes the plugin.

Parameters:

Name Type Description
config object

Configuration

Properties
Name Type Description
Akamai.dns_prefetch_url string

The dns_prefetch_url parameter tells the Akamai plugin what hostname, if any, the plugin should make a DNS Prefetch request to.

Returns:

BOOMR.plugins.Akamai The Akamai plugin for chaining

Example

BOOMR.init({
  Akamai: {
     dns_prefetch_url : "//hostnametodnsprefetch.com"

  }
});

is_complete()

This plugin is always complete (ready to send a beacon)

Returns:

Type: boolean

true