Closed Bat1963 closed 8 months ago
Yes that is how javascript/the web works. Things only get re-rendered when you're not in the middle of a function/event handler.
I have tried using promises and timeouts, etc, but I can't sort it out, sorry. Any help much appreciated.
Share what you tried and maybe someone can help
I am trying to make a progress bar as follows. I am only able to write very simple code and my test example is here:
The problem is that the progress bar only updates when the calculation has finished while the printed output to the console appears in real time. I have tried using promises and timeouts, etc, but I can't sort it out, sorry. Any help much appreciated.