How to use the @automattic/load-script.removeScriptCallback function in @automattic/load-script

To help you get started, we’ve selected a few @automattic/load-script examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Automattic / wp-calypso / client / post-editor / media-modal / detail / detail-preview-videopress.jsx View on Github external
componentWillUnmount() {
		removeScriptCallback( videoPressUrl, this.onScriptLoaded );
		this.destroy();
	}

@automattic/load-script

Async Script Loader.

GPL-2.0
Latest version published 5 years ago

Package Health Score

73 / 100
Full package analysis