Event loop: microtasks and macrotasks#3303
Conversation
| Two more details: | ||
| 1. Rendering never happens while the engine executes a task. It doesn't matter if the task takes a long time. Changes to the DOM are painted only after the task is complete. | ||
| 2. If a task takes too long, the browser can't do other tasks, such as processing user events. So after a time, it raises an alert like "Page Unresponsive", suggesting killing the task with the whole page. That happens when there are a lot of complex calculations or a programming error leading to an infinite loop. | ||
| 2. If a task takes too long, the browser can't do other tasks, such as processing user events. So after a time, it raises an alert like "Page Unresponsive", suggesting killing the task with the whole page. That happens when a lot of complex calculations take place or when a programming error leads to an infinite loop. |
There was a problem hiding this comment.
warning
I'm non native
maybe
| 2. If a task takes too long, the browser can't do other tasks, such as processing user events. So after a time, it raises an alert like "Page Unresponsive", suggesting killing the task with the whole page. That happens when a lot of complex calculations take place or when a programming error leads to an infinite loop. | |
| 2. If a task takes too long, the browser can't do other tasks, such as processing user events. So after a time, it raises a "Page Unresponsive" alert, suggesting to kill the task along the whole page. That happens when a lot of complex calculations take place or when a programming error leads to an infinite loop. |
There was a problem hiding this comment.
How about the task along with the whole page ?
There was a problem hiding this comment.
i dont like "with" there.
"coffee with sugar"
"along" (HOPING Im ok) is "extending to", like
"you kill the task, and the whole page with it"
mmm...
this can be an option too ..
There was a problem hiding this comment.
I THINK it s not legibility but grammar
like "leads" instead of "leading"
There was a problem hiding this comment.
About along with
It can be used to mean:
- together with
- in addition to
this can be an option too
Yeah there are more ways to describe the same thing suggesting to kill the task and the whole page with it. could also work.
There was a problem hiding this comment.
YES
my bad, I got it wrong.
I thought you were asking why "along"
but you were actually fixing it "along with"
Looks ok now I guess...
...
well, if Ilya likes the whole thing.
taking the PR comments into account
|
the engine? |
I'm thinking that the engine interprets the code. |
hard to explain... |
Made a few minor improvements in grammar here and there:
line 45: the update potentially improves legibility
line 53: added
the engineto be more conciseline 263: removed
,because it was placed beforeandline 323: added missing
: