# jetpack/16.3/jetpack_vendor/automattic/jetpack-assets/src/class-shared-stores-assets.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3. 42 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3/code/jetpack_vendor/automattic/jetpack-assets/src/class-shared-stores-assets.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3/raw/jetpack_vendor/automattic/jetpack-assets/src/class-shared-stores-assets.php
- Modified: 2026-06-25T11:57:08+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/jetpack/16.3/code/jetpack_vendor/automattic/jetpack-assets/src/class-shared-stores-assets.php#L10-L20`.

```php
<?php
/**
 * Jetpack shared stores assets.
 *
 * @package automattic/jetpack-assets
 */

namespace Automattic\Jetpack\Assets;

use Automattic\Jetpack\Assets;

/**
 * Registers the externalized jetpack-shared-stores bundle so that consuming
 * packages can declare it as a WordPress script dependency. Loading the bundle
 * once ensures the contained data stores register exactly once per page.
 */
class Shared_Stores_Assets {

	const SCRIPT_HANDLE = 'jetpack-shared-stores';

	/**
	 * Configure.
	 */
	public static function configure() {
		add_action( 'wp_loaded', array( self::class, 'register_assets' ) );
	}

	/**
	 * Register assets.
	 */
	public static function register_assets() {
		Assets::register_script(
			self::SCRIPT_HANDLE,
			'../build/jetpack-shared-stores.js',
			__FILE__,
			array(
				'in_footer' => true,
			)
		);
	}
}

```
