RevenueCat / purchases-js

MIT License
5 stars 3 forks source link

Load branding before displaying UI #166

Closed tonidero closed 2 months ago

tonidero commented 2 months ago

Motivation / Description

There is a small jump when loading the billing flow UI, this is because it has to download the branding info after already displaying some info. This loads the branding during SDK configuration. In case it's not downloaded by the time we present the purchase flow, we will try to download it again.

Before

https://github.com/user-attachments/assets/54bea295-8e9d-46af-82a4-a50f0364ce87

After

https://github.com/user-attachments/assets/e7ca33cd-a3ec-4400-afd5-06c15d2837ad

Changes introduced

Linear ticket (if any)

Additional comments

tonidero commented 2 months ago

Closing in favor of #169