Skip to content

Commit

Permalink
Update bundle size reduction info after latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VeskeR committed Mar 21, 2024
1 parent c4102a1 commit 9b908a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Please refer to the ably-js v2 [lib migration guide](./docs/migration-guides/v2/

### Bundle Size Reduction

The default bundle size for the web has been reduced by 30% compared to v1 - from 231.35 KiB to 162.15 KiB. When calculated with gzip compression, the reduction is 28.5%, from 81.68 KiB to 58.48 KiB.
The default bundle size for the web has been reduced by ~32% compared to v1 - from 234.11 KiB to 159.32 KiB. When calculated with gzip compression, the reduction is ~30%, from 82.54 KiB to 57.9 KiB.

Additionally, by utilizing the new modular variant of the library (see below) and JavaScript tree shaking, you can create your own minimal useful `Realtime` client and achieve a bundle size reduction of 60% compared to v1 - from 231.35 KiB to 93.29 KiB (or 65% for gzip: from 81.68 KiB to 28.29 KiB).
Additionally, by utilizing the new modular variant of the library (see below) and JavaScript tree shaking, you can create your own minimal useful `Realtime` client and achieve a bundle size reduction of ~60.5% compared to v1 - from 234.11 KiB to 92.38 KiB (or ~66% for gzip: from 82.54 KiB to 28.18 KiB).

### Modular variant of the library

Expand Down

0 comments on commit 9b908a0

Please sign in to comment.