-
Notifications
You must be signed in to change notification settings - Fork 140
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
lottie-web
blows up our bundles and makes page load slower
#3959
Comments
Hi @Mikadv,
|
Hi @Mikadv, I created two basic projects, one using
As you can see from the attached image, I was not able to replicate the problem you're experiencing. → InlineTip is the only component that imports SteppedAnimatedMedia, |
Thank you very much for checking. I double checked on our end. And I can see nothing in the call-chain where lottie-web would come with. In the meantime I investigated more projects and their bundles and every time |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has received no activity for 14 days. |
I'm seeing this too, the problem still exists |
This issue is stale because it has been open for 7 days with no activity. |
Bump, we also see this. |
This issue is stale because it has been open for 7 days with no activity. |
Bump. |
This issue is stale because it has been open for 7 days with no activity. |
Bump! This bot is dumb! |
🥳 |
What package(s) are you using?
Detailed description
On a performance improvement work across our offerings we noticed that there is a huge library in our chunks which is
lottie-web
. Its by far the biggest lib that gets pulled in and we wondered why, after investigation we noticed its from@carbon/ibm-products
.Now we wondered about two things:
@carbon/ibm-prodcuts
? We didn't expect@carbon/ibm-prodcuts
ships such a beast. More over we wondered if something is wrong here with tree shaking because it looks as if the entire library is pulled in instead of only the things it needs. Or in a nutshell: Treeshaking seems broken for it.Tearsheet, TearsheetNarrow, TagSet, OptionsTile, UserProfileImage, ToolbarButton, ToolbarGroup, SidePanel
. After discussions you use it for complex animations with SVG. But non of the above should have one. Or do I miss something here?Our chunks get polluted and slow down page load because the browser has to download bigger bundles and analyze all of it before it can progress.
Not sure.
@carbon/ibm-products
use remain.Doesn't matter here.
@carbon/ibm-products@^1.61.1
We use
[email protected]
at the state of writing with the default terser plugin that is shipped with it used.Steps to reproduce the issue
lottie
The text was updated successfully, but these errors were encountered: