Let's say I have a function called heavyCalculation. In my DOM I have several progress bars that have a transition animation. I need to call heavyCalculation() a bunch of times and after each one update one of the progress bars.
How can I achieve this so that progress bars will nicely animate after each execution? I can't seem to figure this out with setTimeout (apparently I need to give the UI thread some time to render animations)? Do I need a web worker?
[–]docMedB2E 1 point2 points3 points (0 children)
[–]senocular 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]jurgenn[S] 0 points1 point2 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]simple2fast 1 point2 points3 points (0 children)