callback when document.body exists
npm install on-body-ready Callback when document.body exists.
$ npm install wcjohnson11/on-body
Will call your function with fn(document.body) when the element has been created. This way you can easily append things to the body even if the Javascript was added in the .
MIT