Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tinyjin
Copy link
Member

@tinyjin tinyjin commented Dec 2, 2024

The size of the JavaScript bundle, as well as the glue code, has been slightly reduced.

  • enhanced tree shaking
  • update compress option

[Before]
CleanShot 2024-12-03 at 02 41 36

[After]
CleanShot 2024-12-03 at 02 41 16

lottie-player.js bundle got -1% size reduction

@tinyjin tinyjin added the enhancement Improve features label Dec 2, 2024
@tinyjin tinyjin self-assigned this Dec 2, 2024
@vercel
Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thorvg-perf-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 24, 2024 2:25am

@hermet hermet added optimization Enhance performance / Reduce memory usage or binary size and removed enhancement Improve features labels Dec 3, 2024
- enhanced tree shaking
- update compress option
@tinyjin tinyjin force-pushed the jinny/js-optimization branch from ec0fb87 to be25df3 Compare December 24, 2024 02:24
@tinyjin tinyjin marked this pull request as ready for review December 24, 2024 02:24
compress: {
pure_getters: true,
passes: 3,
drop_console: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: should we change only this value when we really want to debug the player with a logging?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hermet this config aims production build. When we want to debug, we can disable and check the log

@hermet hermet merged commit ca7299b into main Dec 24, 2024
2 checks passed
@hermet hermet deleted the jinny/js-optimization branch December 24, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimization Enhance performance / Reduce memory usage or binary size

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants