Does your UI take a moment to load, even though it's mostly async?

If you’ve tried pn.state.onload() and others, I found adding an await asyncio.sleep(0.1) lets the Panel template to load completely

2 Likes

What do you mean by that? Where should it be added?

I think it works even with await asyncio.sleep(0), you need to release control to the event loop of asyncio

1 Like

Anywhere you suspect it’s being blocked

1 Like