Skip to content
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

Closed
muttmuure opened this issue Sep 25, 2023 · 12 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2

Comments

@muttmuure
Copy link
Contributor

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.

@kosmydel
Copy link
Contributor

kosmydel commented Oct 5, 2023

Hey, probably solving the above issue will cover this issue as well:

@kosmydel
Copy link
Contributor

kosmydel commented Oct 9, 2023

Hey, I am from Software Mansion. I am going to handle this issue.

@muttmuure muttmuure added Weekly KSv2 and removed Monthly KSv2 labels Oct 11, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Nov 2, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

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.

Copy link

melvin-bot bot commented Nov 13, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

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.

@roryabraham
Copy link
Contributor

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.

@roryabraham
Copy link
Contributor

Copied from another issue, but some thoughts:

I think if we get good caching and potentially also preload .lottie assets like we do for our web fonts, we could eliminate most scenarios where a user could possibly see this type of bug or similar bugs where there's a delay before the animation loads.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 14, 2023
@melvin-bot melvin-bot bot changed the title Migrate Lottie animations from bundle to app assets [HOLD for payment 2023-11-21] Migrate Lottie animations from bundle to app assets Nov 14, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 14, 2023
Copy link

melvin-bot bot commented Nov 14, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 14, 2023

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

  • @kosmydel does not require payment (Contractor)

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Nov 21, 2023
@melvin-bot melvin-bot bot added the Daily KSv2 label Nov 21, 2023
Copy link

melvin-bot bot commented Nov 24, 2023

@kosmydel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Nov 24, 2023
Copy link

melvin-bot bot commented Nov 28, 2023

@kosmydel 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@kosmydel
Copy link
Contributor

Hey @muttmuure @roryabraham, the Melvin-bot is angry at me. Can we close this issue?

@melvin-bot melvin-bot bot removed the Overdue label Nov 28, 2023
@roryabraham
Copy link
Contributor

Yeah, I think we can close this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2
Projects
Development

No branches or pull requests

3 participants