v2.0.0
- Breaking Change:
DOMisReady
has been updated to be a function that accepts a Document object as an argument. This is a breaking change from version 1.0.0 where DOMisReady was a promise object. This change allows users to check the readiness of any document, such as an iframe's content document. Please update your usage of DOMisReady accordingly.
Old Usage:
// using then
DOMisReady.then(() => {
// DOM manipulation code here
});
// using async/await
(async function() {
await DOMisReady;
// DOM manipulation code here
})();
New Usage:
// using then
DOMisReady().then(() => {
// DOM manipulation code here
});
// using async/await
(async function() {
await DOMisReady();
// DOM manipulation code here
})();
- Documentation has been updated
- Dependencies have been updated
Full Changelog: v1.1.0...v2.0.0