-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-11-21] Migrate Lottie animations from bundle to app assets #28160
Comments
Hey, probably solving the above issue will cover this issue as well: |
Hey, I am from Software Mansion. I am going to handle this issue. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
This is done, but caused a few issues which maybe warranted broader discussion than they got. Namely:
I think we should consolidate those discussions into this issue and discuss potential solutions. |
Copied from another issue, but some thoughts:
I think if we get good caching and potentially also preload |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.98-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-11-21. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
@kosmydel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@kosmydel 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Hey @muttmuure @roryabraham, the Melvin-bot is angry at me. Can we close this issue? |
Yeah, I think we can close this for now |
Problem
Lottie animation resources are bundled along the main js bundle. They constitute around 5M of 29M bundle in release mode which is significant. The issue with including such resources in a bundle is that this data needs to be parsed and allocated (these objects will also be quite large and require a tons of allocations because of their structure) which slows down the startup time.
All of that only happens such that this object can be serialized to string and parsed again by the native Lottie code. The source of the issue is the fact Lottie assets are imported using bundler
import
statement much like you do with other resources like images.Solution
The fix is to change the way these files are imported and allow Lottie load them directly from the app assets using resource link.
The text was updated successfully, but these errors were encountered: