OctoFi - Track your DeFi portfolio, find new investment opportunities, buy and sell directly, and wrap your tentacles around a sea of gains. Hosted on Github Pages.
The modal loads over 4000 tokens and each token does a balance retrieval. This is intensive and causes the browser to freeze up.
Solution:
Remove the balance calls. Replace with no balance, or map a user's token balances to the currency list instead of making a call for each and every currency.
Reduce the length of the list so fewer items are rendered. This can be done with a smaller token list or having a load more button at the bottom of a sliced list.
The modal loads over 4000 tokens and each token does a balance retrieval. This is intensive and causes the browser to freeze up.
Solution: Remove the balance calls. Replace with no balance, or map a user's token balances to the currency list instead of making a call for each and every currency. Reduce the length of the list so fewer items are rendered. This can be done with a smaller token list or having a load more button at the bottom of a sliced list.