Returns a Promise for cleaner usage, provides a Promise chain helper function and can also be used as a pure function.
Returns a Promise for cleaner usage, provides a Promise chain helper function and can also be used as a pure function. The Promise will resolve instantly if the DOM is already ready.