X resources are served by a CDN through the following URLs
Environment: LIVE
https://assets.empathybroker.com/empathyx/
{INSTANCE}
/app.js
Environment: STAGING
https://preassets.empathybroker.com/empathyx/
{INSTANCE}
/app.js
The recommended way to load the X JavaScript resource is by using the following tag in your HTML structure:
<script defer src="https://assets.empathybroker.com/empathyx/{INSTANCE}/app.js"></script>
The defer attribute helps to keep things blazing fast by loading the resource asynchronously and without blocking the page load. Once the script is ready, X will automatically call the global initEmpathyX function (see the Initializing X section).