Detect when an element is ready in the DOM
Get the current readyState of the environment we're loaded in.
Simple front-end CommonJS module - a handy function to ensure the DOM is fully ready before executing provided functionality.
This micro-library will allow you to easily delay code execution until the DOM is loaded.
A promise which resolves when the DOM is ready.