|
|
|
|
|
by anotherangrydev
3952 days ago
|
|
Does the spec explicitly tells about how to time tasks vs microtasks? I was under the impression that it was up to the implementation and not relevant. To add something more, I would really like to see an example where this actually ruins a program execution. Edit: And this is wrong because... ? |
|
Yes, both microtask and task execution is specced by html. Using a task rather than a microtask costs performance by the time it takes to do other between-task things such as rendering. There was an opinion that promises were slow that was really only down to poor callback scheduling.