How to detect the SiteGainer Loaded Event

To verify that SiteGainer has loaded, please listen for the event ”sitegainer-loaded”.

document.addEventListener("sitegainer-loaded", function(e) {
  // Run any SiteGainer dependent code.
});