· Web App Developer

Best practice for loading data in header?

Hi guys,
I have a header that loads and displays information from my wallet collection (purple) & subscription collection (yellow). There is a backend query on each label. This is simple data that i am displaying however it has to load each time i change page, so it shows loading icons. I've never seen headers taking time to load such simple data... i'm also wondering if this is the most efficient method of loading it?

How do i optimise this to load faster so you don't see the loading icons and is there a more efficient way where it doesn't need to load this data each time (it doesn't change too often).

TIA

1
5 replies