wait-for-it.js Example

A zero-dependency JavaScript library that triggers a function when an element has been added to the DOM.