Update 2-ui/99-ui-misc/03-event-loop/article.md
Co-authored-by: Muhammed Zakir <8190126+MuhammedZakir@users.noreply.github.com>
This commit is contained in:
parent
0003221ae2
commit
cb9542b1e1
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ So far, quite simple, right?
|
||||||
|
|
||||||
Two more details:
|
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.
|
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, process 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 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 there are a lot of complex calculations or a programming error leading to an infinite loop.
|
||||||
|
|
||||||
That was the theory. Now let's see how we can apply that knowledge.
|
That was the theory. Now let's see how we can apply that knowledge.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue