Skip to content

Commit 84eb11c

Browse files
committed
docs: apply reviewer suggestion for event loop terminology
1 parent fc036fe commit 84eb11c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • files/en-us/web/api/eventtarget/dispatchevent

files/en-us/web/api/eventtarget/dispatchevent/index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ should have already been created and initialized using an {{domxref("Event/Event
1919
> [!NOTE]
2020
> When calling this method, the {{domxref("Event.target")}} property is initialized to the current `EventTarget`.
2121
22-
Unlike "native" events, which are fired by the browser and dispatched
23-
asynchronously via the [event loop](/en-US/docs/Web/JavaScript/Reference/Execution_model),
24-
`dispatchEvent()` invokes event handlers _synchronously_. All applicable event
25-
handlers are called and return before `dispatchEvent()` returns.
22+
Unlike "native" events, which the browser fires by queuing a task on the [event loop](/en-US/docs/Web/JavaScript/Reference/Execution_model), `dispatchEvent()` invokes all applicable event handlers _synchronously_ before returning.
2623

2724
## Syntax
2825

0 commit comments

Comments
 (0)