kodadot / nft-gallery

Generative Art Marketplace
https://koda.art
MIT License
627 stars 359 forks source link

Speed up loading of drop cards on landing #9369

Closed yangwao closed 6 months ago

yangwao commented 6 months ago

Sometimes it's there like 5s and I'm on 1Gbit optics 😅

If you can come up with some "caching" idea, it seems like those "edge" workers are always waiting for something ? cc @preschian @vikiival

image

vikiival commented 6 months ago

Response from workers is in miliseconds.

I guess that is it is waiting for response from image worker.

Moreover we can give it higher loading priority and lazy load other cards.

exezbcz commented 6 months ago

ref:

preschian commented 6 months ago

If you can come up with some "caching" idea

This is what I thought, also. Currently, the response time from fxart is roughly 700ms. I created a new issue here: https://github.com/kodadot/private-workers/issues/58.

image

Try to disable one of the endpoints; it will always show a loading skeleton.

image