btcmap.org icon indicating copy to clipboard operation
btcmap.org copied to clipboard

Initial map load performance

Open dadofsambonzuki opened this issue 10 months ago • 1 comments

Describe the bug

From Wallet of Satoshi:

We've had a customer report to us (and also verified) that the initial load of BTC Map seems to get stuck on about 60% loaded. Refreshing the screen, and subsequent loads seem to be work fine after that. Just that first new load on both our in-app browser version, and when testing on other fresh browsers. Just a heads up about a potential bug.

I could not fully recreate this. When loading in a fresh browser there was indeed a long pause at 60%, but it progressed after around 10s. This was on a powerful laptop with a v fast Internet connection.

On slower devices this could indeed look like a failed initial load and perhaps might be if there is some timeouts being hit.

To Reproduce

Clear browser cache and reload map.

Expected behavior

A more progressive experience, perhaps loading a subset of locations to begin with based on local.

Screenshots

Additional context

dadofsambonzuki avatar Feb 11 '25 09:02 dadofsambonzuki

We probably need to work towards a lightweight version of the web app designed for embedding that either has no cache or only caches the merchants/elements and not the rest of the data (reports, communities, etc.).

WIP here: https://fast.btcmap.org/

MVP:

  • [ ] Tile toggles inc. dark
  • [ ] Amenity icons
  • [ ] Better element modals
  • [ ] Links to merchant pages
  • [ ] Optional open at location should apps that embed want to offer location feature

dadofsambonzuki avatar Feb 12 '25 08:02 dadofsambonzuki