Error: WebAssembly.Compile is disallowed on the main

Hello Team,

We have integrated PyScript in our platfom, see here PyScript: Python in the Browser | TSSFL Stack

There are errors whenever I execute some codes, especially If I want to visualize. The error messages commonly contain “WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB”.

How do I solve this problem ?

Appreciating for your help.