Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IFrameHelper.setupAudioListeners is forced to run on first interaction #9209

Open
astappiev opened this issue Apr 8, 2024 · 1 comment
Open
Labels
🐳 channel/live-chat Issues related to website live chat enhancement

Comments

@astappiev
Copy link

astappiev commented Apr 8, 2024

Describe the bug

Because of IFrameHelper.setupAudioListeners fired on click event, the website gets low Core Web Vital: Interaction to Next Paint score.

image
image

To Reproduce

  1. Open a website with Chatwoot SDK installed
  2. Interact with something, e.g. menu button click
  3. Use Performance Profiler to find the cause

Expected behavior

At least an option to disable audio notifications in this file from a configuration

initOnEvents.forEach(e => {
document.addEventListener(e, IFrameHelper.setupAudioListeners, false);
});

Environment

app.chatwoot.com

Cloud Provider

None

Platform

None

Operating system

No response

Browser and version

No response

Docker (if applicable)

No response

Additional context

No response

@astappiev astappiev added the Bug label Apr 8, 2024
Copy link

linear bot commented Apr 8, 2024

@vishnu-narayanan vishnu-narayanan added 🐳 channel/live-chat Issues related to website live chat enhancement and removed Bug labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐳 channel/live-chat Issues related to website live chat enhancement
Projects
None yet
Development

No branches or pull requests

2 participants