Registers an event handler for a specific node. Automatically initializes MutationObserver or ResizeObserver if special events ('created', 'removed', 'resized') are requested.
The target DOM node.
The name of the event to listen for.
The function to call when the event occurs.
Whether to prepend the handler to the list (default: false).
Registers an event handler for a specific node. Automatically initializes MutationObserver or ResizeObserver if special events ('created', 'removed', 'resized') are requested.