Skip to content

Commit 6895d38

Browse files
Update 2-ui/99-ui-misc/03-event-loop/article.md
Co-authored-by: Muhammed Zakir <[email protected]>
1 parent cb9542b commit 6895d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/99-ui-misc/03-event-loop/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Finally, we've split a CPU-hungry task into parts - now it doesn't block the use
160160

161161
Another benefit of splitting heavy tasks for browser scripts is that we can show progress indication.
162162

163-
Usually the browser renders after the currently running code is complete. It doesn't matter if the task takes a long time. Changes to DOM are painted only after the task is finished.
163+
As mentioned earlier, changes to DOM are painted only after the currently running task is completed, irrespective of how long it takes.
164164

165165
On one hand, that's great, because our function may create many elements, add them one-by-one to the document and change their styles -- the visitor won't see any "intermediate", unfinished state. An important thing, right?
166166

0 commit comments

Comments
 (0)