Socket
Socket
Sign inDemoInstall

@wordpress/dom-ready

Package Overview
Dependencies
Maintainers
16
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/dom-ready - npm Package Compare versions

Comparing version 2.12.1 to 2.12.2-next.53e2173694.0

4

build-module/index.js

@@ -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.

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc