hugolgst / digart

Generating visualisations for π, e, Φ in pure Golang made for π-day 2020. Usable in the web with WebAssembly.
https://digart.netlify.com/
MIT License
72 stars 1 forks source link

Image generation causes the page to freeze #2

Open adri326 opened 4 years ago

adri326 commented 4 years ago

Calculations are done in the page's thread in a blocking way, meaning that the page becomes almost entirely unresponsive (unclickable links, buttons not doing anything, etc.) while the script is running (which may take a minute).

You should consider using Web Workers.

Here is a screenshot of an expression in the browser's console waiting to be executed while the image is being generated:

Screenshot_2020-03-30_17-45-43

hugolgst commented 4 years ago

Hello,

I know this bug, and I might fix it later. Thanks for your issue!