// Simulate some frequent event like DOMNodeInserted
setInterval(function() {
box.trigger('frequentEvent')
}, 500); // not working if this is lower than a delay
box.on("frequentEvent", function() {
$(this).append('fire ')
}, 300); // works without this delay
Here's a pen