elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.63k stars 8.22k forks source link

[Drift] Consider loading Drift after user interacts with "chat" button #167874

Closed Dosant closed 1 month ago

Dosant commented 1 year ago

Currently we load and initialize Drift on every Kibana page load for Drift for trial users (+gap). We load it mostly to leverage Drift’s native targeting to determine if the chat button should be displayed. This comes with the performance overhead both for network and cpu.

We could minimize performance impact by loading Drift only on "chat" button click, the loading experience can look like this:

https://github.com/elastic/kibana/assets/7784120/87fa3592-d380-423e-8a15-2857defac2a2

However we will lose the native Drift targeting system, as we will show the chat button independently from Drift. We can mitigate this in the following ways:

elasticmachine commented 1 year ago

Pinging @elastic/appex-sharedux (Team:SharedUX)