Promisified DOM Events
This is a small library which creates promises for some single events: DOMContentLoaded and window.onload. It doesn't matter when you use it before or after events. If an event has happend promise will be fullfilled.
Install
npm install -S promisified-dom-events
Use
// import;ready;loaded; // from a global objectwindowpromisifiedDomEventsready;windowpromisifiedDomEventsloaded;