Skip to content

Asset loader: only start animations when all of the assets are loaded #391

@galliotl

Description

@galliotl

Hello Rive team,

We're using the react sdk and we'd like to know if there's a way or if not if it's planned to have a feature where when using a custom asset loader (font in my case) we can specify that the animation should not start while the assets are still loading.

I saw this video from Gordon and my understanding is that the recommended approach is to preload the fonts before-hand. This can help for my use case but is not as easy DX wise because:

  • as devs we don't necessarily know which assets will be required in the rive animation
  • depending on how you preload your fonts you can still run into race conditions where you start the animation without having all the required assets

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions