Conversation
The site said ~7KB gzipped and 8 built-in locales, and the widget README said ~13KB and English only. The script tag loader is 4.95 kB gzipped and the chat panel, loaded on open, is 19 kB. The widget ships English plus 13 translations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
The size and language numbers on the site and in the widget README disagreed with each other and with the build:
packages/widget/README.mdintropackages/widget/README.mdfeaturesThe root README already said "under 5 kB", which is right. The core README's "8 built-in locales" is about
@chatcops/core's owngetLocale, which does have 8, so it stays.How I tested this
devand ranpnpm size: the script tag loader is 4.95 kB gzipped, the chat panel 19.04 kB, the single file build 22.39 kB.packages/widget/src/localeshas 13 files on bothdevandproduction, the i18n docs table lists 14 languages with English, and@chatcops/widget1.1.1 on npm exports them.