# elementor/3.8.0-beta1/app/assets/js/loader/commands/load.js

Elementor Website Builder – more than just a page builder, version 3.8.0-beta1. 30 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/assets/js/loader/commands/load.js
- Raw: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/raw/app/assets/js/loader/commands/load.js
- Modified: 2022-09-19T16:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/assets/js/loader/commands/load.js#L10-L20`.

```javascript
export class Load extends $e.modules.CommandBase {
	apply( args ) {
		const component = this.component;

		if ( ! component.iframe ) {
			component.iframe = document.createElement( 'iframe' );
			component.iframe.className = 'elementor-app-iframe';
			component.iframe.style.cssText = '' +
				'display: none;' +
				'width: 100%;' +
				'height: 100%;' +
				'position: fixed;' +
				'top: 0;' +
				'left: 0;' +
				'z-index: 99999; /* Over WP Admin Bar */' +
				'background-color: rgba(0, 0, 0, 0.8);';

			document.body.appendChild( component.iframe );
		}

		if ( args.url === component.iframe.src ) {
			return;
		}

		component.iframe.src = args.url;
	}
}

export default Load;

```
