Skip to main content

onLoad

Triggered immediately after the widget script and resources have finished loading.

  • Use case: Setting global variables, dispatching events to your SPA, or pushing "Widget Ready" events to Google Tag Manager.
onLoad: function() {
console.log('Widget loaded');
// Example: Notify GTM
dataLayer.push({ event: "User.com - Widget Ready" });
}