Moved to https://developer.akamai.com/tools/boomerang#mPulseNon-BlockingLoaderSnippet
This is a loader snippet for boomerang (https://github.com/soasta/boomerang) that doesn't use the iframe except for legacy browsers, and does not use document.write
If an iframe is required, it is injected into the page immediately or soon after the script, so you may place the script wherever in the HTML you would like the iframe to show up.
For IE6 & 7, we will fallback to a same-window iframeless dynamic script node. This does mean that the script will be a Single Point of Failure for these two browsers, but given the low combined market share of these two browsers, the choice is between not getting any beacons for these browsers or potentially being a SPoF for users of these browsers.
You MUST include everything, including the <script>
node with exactly the same id
attribute.
Replace "YOUR-API-KEY-GOES-HERE" with your actual API key (in quotes)
It is best to use boomerang version 1.571 or higher with this loader.
This loader and its CSP compliance is documented at https://calendar.perfplanet.com/2018/a-csp-compliant-non-blocking-script-loader/
Hi Steve. Appending to the end of body for legacy browsers won't work because body may not exist when the loader runs. Since Google does not run as a legacy browser, it shouldn't matter where the iframe goes. Injecting it before the loader means that you can place the loader in the body if you want the iframe to go there.