Skip to content

Conversation

@ajey35
Copy link

@ajey35 ajey35 commented Jan 22, 2026

Disabled auto-sync on swap-page

by modifying api1.js to remove syncAndSave call in getBalance.

fixes : #57

what I have done.

The Swap page (and Wallet page) calls getBalance when it loads. Previously, this function forced a slow "sync and save" operation, which caused the unresponsiveness you described.

I have removed that sync call. Now, when you go to the Swap page, it will load instantly using the existing data in memory. The actual synchronization will only happen in the background every 5 minutes (or when you manually click refresh), so it won't block the page anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't call sync at swap page

1 participant