microsoft / microsoft/BotFramework-WebChat

[OC] Downsize the webchat script hosted on CDN

Open
#4,040 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services customer-reported feature-request
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Please view our Technical Support Guide before filing a new issue.

Feature Request

Use the 'feature-request' query to search for existing feature requests.
The Samples tag also lists examples and implementations that have already been requested.

Is your feature request related to a problem? Please describe.

Customer of Dynamics 365 Omnichannel reported that because webchat script is too large (~5MB full size), their Google Lighthouse score dropped and their website is ranked lower than before in Google search engine.

Other incidents report that failure to load webchat script

Describe the suggestion or request in detail

Decrease the size of said script (We're using webchat-es5.js for instance).

Describe alternatives you have considered

Provide different versions of webchat leaving certain features out as the customer sees fit (For example, OC doesn't need speech), so it might be beneficial to use a version that doesn't have speech modules

Additional context

Unused JS
Treemap

[feature-request]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the webchat-es5.js bundle and the reported Lighthouse and treemap context in this issue. Determine which features contribute to the bundle size and define a measurable reduction, such as a smaller build or versions without speech modules; the issue names no source files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.