Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/dom-ready

Package Overview
Dependencies
Maintainers
9
Versions
159
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.1.0 to 2.2.0

9

build-module/index.js

@@ -6,2 +6,11 @@ /**

*
* @example
* ```js
* import domReady from '@wordpress/dom-ready';
*
* domReady( function() {
* //do something after DOM loads.
* } );
* ```
*
* @return {void}

@@ -8,0 +17,0 @@ */

@@ -13,2 +13,11 @@ "use strict";

*
* @example
* ```js
* import domReady from '@wordpress/dom-ready';
*
* domReady( function() {
* //do something after DOM loads.
* } );
* ```
*
* @return {void}

@@ -15,0 +24,0 @@ */

4

package.json
{
"name": "@wordpress/dom-ready",
"version": "2.1.0",
"version": "2.2.0",
"description": "Execute callback after the DOM is loaded.",

@@ -28,3 +28,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "80d228669adadb8dfcd24b8421517fed3be2d474"
"gitHead": "1e024a20a20369af7bc9720a676fdd3837a3a105"
}

@@ -15,5 +15,15 @@ # DOM Ready

### Usage
## API
```JS
<!-- START TOKEN(Autogenerated API docs) -->
### default
[src/index.js#L29-L29](src/index.js#L29-L29)
Specify a function to execute when the DOM is fully loaded.
**Usage**
```js
import domReady from '@wordpress/dom-ready';

@@ -26,6 +36,17 @@

**Parameters**
- **callback** `Function`: A function to execute after the DOM is ready.
**Returns**
`void`:
<!-- END TOKEN(Autogenerated API docs) -->
## Browser support
See https://make.wordpress.org/design/handbook/design-guide/browser-support/
See <https://make.wordpress.org/design/handbook/design-guide/browser-support/>
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>

@@ -6,2 +6,11 @@ /**

*
* @example
* ```js
* import domReady from '@wordpress/dom-ready';
*
* domReady( function() {
* //do something after DOM loads.
* } );
* ```
*
* @return {void}

@@ -8,0 +17,0 @@ */

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