lbryio / lbry-desktop

A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.
https://lbry.tech
MIT License
3.56k stars 414 forks source link

Markdown: initial fetch typically takes at least 1-2s #6083

Open infinite-persistence opened 3 years ago

infinite-persistence commented 3 years ago

It always bugs me that Posts, even when it's just 10 characters, ends up showing a gray placeholder for a significant duration when loaded for the first time**. The culprit seems to be the fetch time (CDN?). Larger images seem to load faster than that.

** "first time" here really means loading that Post for the first time on your network/PC. The fetch will be relatively faster afterwards, even when refreshed with the cached cleared. Restarting dev:web or re-opening the browser does help to reproduce the "first time" scenario, although not guaranteed (usually will be 3/4 of the worst-case).

image

More examples

image


Related: #6057 Investigate low Core Web Vitals score from google

DispatchCommit commented 3 years ago

That TTFB is absolutely awful. How is loading text so slow?