The CordSDK provides
You can listen to the JavaScript event:
cord:load
, which will fire when the window.CordSDK object is ready.
You can use this event to know when it is safe to call any function in window.CordSDK.
Example:
window.addEventListener("cord:load", () => {
console.log("Cord is ready -- time to party!");
});
On this page