[SDK] Live Chat Loader (Default Off)

SDK, Product

We added Live Chat Loader to OXVO Messenger to reduce the performance impact of chat widgets on page load.

Read the full blog post: Live Chat Loader: keep live chat fast without the performance hit

What's new

  • Lightweight launcher first: show a placeholder launcher immediately.

  • Deferred full load: load the full Messenger SDK only when the page is idle or the user interacts.

  • liveChatLoader is false by default.

Enable it

<OxvoMessengerProvider
  baseUrl="https://your-oxvo-domain"
  websiteToken="your-website-token"
  liveChatLoader={true}
/>

Configure appearance (optional)

<OxvoMessengerProvider
  baseUrl="https://your-oxvo-domain"
  websiteToken="your-website-token"
  settings={{
    position: 'left',
    theme: 'dark',
    widgetStyle: 'flat',
  }}
  liveChatLoader={{
    enabled: true,
    appearance: {
      position: 'right',
      horizontalSpacing: 24,
      verticalSpacing: 24,
      messengerColor: '#2d6bff',
      type: 'expanded_bubble',
      launcherTitle: 'Support',
    },
  }}
/>

Override precedence

  1. defaults

  2. settings passed to init

  3. liveChatLoader.appearance (highest priority)

Note: widgetStyle is inherited from Messenger settings and can't be overridden via liveChatLoader.appearance.