Note: The DNS plugin hasn't been tested. Your help in testing it is appreciated.
The DNS plugin measures the latency of DNS lookups from the user's browser to your server.
The DNS API is encapsulated within the BOOMR.plugins.DNS
namespace.
Note that the DNS plugin requires some amount of server-side set up. See Howto #8 for details on how to set this up.
Called by the BOOMR.init() method to configure the DNS plugin. There is only one configurable option:
base_url
parameter tells the DNS plugin where it can find its DNS testing
images. This URL must contain a wildcard character which will be replaced with a random
string. The images will be appended to this string without any other modification. If you
have any pages served over HTTPS, then this URL should be configured to work over HTTPS as
well as HTTP. The protocol part of the URL will be automatically changed to fit the current
document.
BOOMR.init({ DNS: { base_url: "http://*.yoursite.com/images/" } });
In the above code, * will be replaced with a random string.
a reference to the BOOMR.plugins.DNS
object, so you can chain methods.
The DNS test will not run if a base_url
is not configured.
Called by BOOMR.sendBeacon() to determine if the DNS plugin has finished what it's doing or not.
true
if the plugin has completed.false
if the plugin has not completed.This plugin adds the following parameter to the beacon:
The latest code and docs is available on github.com/SOASTA/boomerang