BOOMR.plugins. Akamai


This plugin will house logic specific to Akamai infrastructure.

This plugin responds to the dns_prefetch_enabled parameter in the Akamai section of the config response. When dns_prefetch_enabled parameter is present in the config response, this plugin checks the BOOMR.plugins.AK plugin to see if a host is specified for dns prefetch. If so, this plugin will append a Link element to perform a DNS prefetch against he host specified in the AK plugin. This request would only be done after the page load event so as to not interfere with the page's intended behavior. This plugin also perform two additional XHR requests against Mapping v4 and v6 hosts if instructed to do so in the config response.

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_enabled boolean

The dns_prefetch_enabled parameter tells the Akamai plugin should make a DNS Prefetch request.

Returns:

BOOMR.plugins.Akamai The Akamai plugin for chaining

Example

BOOMR.init({
  Akamai: {
     dns_prefetch_enabled: true
  }
});

is_complete()

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

Returns:

Type: boolean

true