node-inserted
A module to detect DOM insertion. It fires a new event whenever a new element is inserted into the DOM that has the .inserted
class. You can add a listener to the document
to get all the insertions, or you can add a listener to the parent element. It uses the idea, published in this article.
browserify
npm install node-inserted
;var {console;};document; // fires on every insertionparent; // fires only when childs are inserted