Skip to content

v2.0.0

Compare
Choose a tag to compare
@rafaucau rafaucau released this 02 Jul 21:31
· 14 commits to main since this release
  • 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