Embedding pictures takes a long time

Running Silverbullet v2.5 on my own server, which I am accessing with various devices through Cloudflare.
One thing that puzzles me is that embedding pictures takes an unpredictably long time (usually hours), even on the device used to embed the pictures.

Now, even though I may have the wrong understanding of local-first, I have to say that Silverbullet running on Pikapods was a LOT faster.

Is there anything I could change to remedy this? How long does it take normally to make an image appear?

Sounds like a caching problem. Did you follow the guide: Use SilverBullet with Cloudflare Zero Trust?

I forgot this step as well initially. After fixing it, images appear immediately.

Hours makes no sense at all unless you are on a dial-up modem and have HUGE images. By default documents (including images) are not synced locally, so everything fetches on the fly via the Internet. However, you may want to try to enable syncing of documents to see if this helps, put this in your CONFIG and reload (and let a sync cycle kick in):

config.set("sync.documents", true)

Or what @Mike says :slight_smile:

1 Like

Thank you both, I had indeed managed to overlook the part with the Cloudflare rule.

It still did not work initially, though. There was a trailing whitespace in the URL in the cloudflare rule, which meant that the rule never caught on.
Deleting it solved this issue (if anyone is experiencing a similar problem).

Thanks a bunch again, much appreciated! Silverbullet is now as snappy as one could wish for.

I did put that in my CONFIG, too, in the hope that there won't be an interference between the two fixes