ipfs / service-worker-gateway

[WIP EXPERIMENT] IPFS Gateway implemented in Service Worker
https://inbrowser.link
Other
17 stars 8 forks source link

UX: visual confirmation that load is in progress #246

Closed lidel closed 1 month ago

lidel commented 1 month ago

Problem

Right now, when user clicks on "Load content" and if trustless gateway is slow, it just hangs like that.

It looks like things are broken with SW, and not IPFS retrieval, but if you inspect log, SW does its job, it has block request in pending state to render /wiki/ directory:

2024-05-08_19-38

It is stuck like this for 4.8 min and then errors:

image

Solution

We need visual indicator that page load started.

At minimum, clicking on "Load content" should replace page with message "SW initialized, please wait while it attempts to retrieve content from IPFS peers"

Over time, the page would display additional tips, if the load takes longer than a few seconds, but right now we need basic UX fix.