@wordpress/dom-ready
Advanced tools
Comparing version 2.12.1 to 2.12.2-next.53e2173694.0
@@ -32,2 +32,6 @@ /** | ||
export default function domReady(callback) { | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
if (document.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly. | ||
@@ -34,0 +38,0 @@ document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly. |
@@ -39,2 +39,6 @@ "use strict"; | ||
function domReady(callback) { | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
if (document.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly. | ||
@@ -41,0 +45,0 @@ document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly. |
{ | ||
"name": "@wordpress/dom-ready", | ||
"version": "2.12.1", | ||
"version": "2.12.2-next.53e2173694.0", | ||
"description": "Execute callback after the DOM is loaded.", | ||
@@ -32,3 +32,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "c79ef3aaa212f328a7d45f02018c21c94aa0965c" | ||
"gitHead": "cac63ac5e871791c3ea5bc6a5a7dd06d6229cccb" | ||
} |
@@ -32,2 +32,6 @@ /** | ||
export default function domReady( callback ) { | ||
if ( typeof document === 'undefined' ) { | ||
return; | ||
} | ||
if ( | ||
@@ -34,0 +38,0 @@ document.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49096
219
1