balancednetwork / balanced-network-interface

An open-source interface for the Balanced Network protocol (https://balanced.network)
https://app.balanced.network/
23 stars 22 forks source link

Cross-chain loan enhancements #1401

Open parrot9design opened 2 months ago

parrot9design commented 2 months ago


Add {token} to your {blockchain} wallet.












hetfly commented 3 weeks ago

@parrot9design

Add the chain breakdown for each collateral type

Still waiting for the backend

This applies to the whole app, but when you first visit a page, it takes a while for the fonts etc to load in. Is there anything we can do to speed this up?

I've added a font-display: swap rule to the font face, that should specifically force loading the font as soon as the rule is read.

Usually this is handled by preloading the font, but it's kind of loosing the sense in our bundler, because the bundler hashes the asset names. Meaning the resulting font name has a gibberish in the end - font-name-D34Hhhd77.wofffor example. So we would have to import the files dynamically using javascript, then create the preloading tags using the dynamic names and then append the tags to the document. Doesn't sound like performance optimisation 😅

The css rule should help, if not and the font change issue is still annoying, I can look into the option above in more detail.

EDIT: Looks like the hashing is configurable, so I can look into it if the swap rule doesn't help.