Where does the concept of macrotasks come from in the browser?

104 Views Asked by At

In many articles about the browser's event loop, the concept of macrotasks and microtasks is mentioned. But I looked at the description of event loops in the HTML spec, where there is no concept of macrotasks, only two types of tasks (tasks and microtasks). Why does everyone call this task a macro task? Where does the concept of macrotasks come from?

A long time ago, I accidentally came across an article explaining the origin of macro tasks. It said that the term "macro task" was used in the variables that implement the event loop in the Chromium source code. I cannot confirm the accuracy of this article, and I can no longer find the article. Therefore, I would like to confirm whether the article is correct, and whether the term "macro task queue" is used in the Chromium source code. If you have any relevant information, please provide specific links. Thank you.

0

There are 0 best solutions below