Custom events and passive listeners
Comes up in: Web fundamentals
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
CustomEventwithdetaildispatchEventis synchronous- passive listeners for touch/wheel scroll performance
EventTargetas a base class
Words you will know
What you will practise
- component communication via custom events
Interview questions this answers
- What is a passive event listener and why does it help scrolling?
- Is
dispatchEventsynchronous or asynchronous?