Does Browser Agent Support Loading BA.js using Defer Timing?

Document ID : KB000117197
Last Modified Date : 09/10/2018
Show Technical Document Details
Introduction:
AXA Supports the Monitoring of Web Applications using Browser Agent as described here: https://docops.ca.com/ca-app-experience-analytics-digital-experience-insights-from-ca/ga/en/configuring/collect-data-from-your-web-application . This document describes using the async attribute: https://www.w3schools.com/tags/att_script_defer.asp .
Question:
Does Browser Agent Support Loading BA.js using Defer Timing?
Answer:
We do not support using the defer attribute. The reason for this is that BA.js has been specifically designed to be loaded both synchronously and asynchronously. As many metrics reported by this functionality are timing based, we cannot guarantee the accuracy of these metrics if a defer timing is used. Loading the javascript file synchronously and asynchronously are fully supported.