Tagged “events”
-
TIL Event Delegation javascript optimization events
Event delegation is one of the most helpful patterns for DOM events! Adding too many event listeners means JavaScript is storing it all in memory. Event Delegation lets you store one listener, that then looks for the target.
-
TIL using Event Delegation javascript events
It's cheaper for the browser to track one event and fire it on every click that it is to manage multiple events.
-
TIL how to remove a event listener js events
Maybe you have a situation where you only want the event to fire once.
-
TIL oncontextmenu feature for right-clicking javascript events
The oncontextmenu property lets us assign an event handler function when the right mouse button is clicked on the browser tab.
-
TIL Event Listeners in devtools javascript events devtools
Today I learned that you can identify the Event Listener directly in the Devtools!
-
TIL the difference between throttling and debouncing javascript events
Throttling enforces a maximum number of times a function can be called over time. Debouncing enforces that a function not be called again until a certain amount of time has passed without it being called.
See all tags.