wpsc_preload_notification_scripts()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

wpsc_preload_notification_scripts();

wpsc_preload_notification_scripts() code WPSCache 1.12.0

function wpsc_preload_notification_scripts() {
	if (
		isset( $_GET['page'] ) && $_GET['page'] === 'wpsupercache' &&
		isset( $_GET['tab'] ) && $_GET['tab'] === 'preload'
	) {
		wp_enqueue_script(
			'preload-notification',
			plugins_url( '/js/preload-notification.js', __DIR__ ),
			array( 'jquery', 'wp-i18n' ),
			WPSC_VERSION,
			true
		);

		wp_localize_script(
			'preload-notification',
			'wpsc_preload_ajax',
			array(
				'ajax_url'       => admin_url( 'admin-ajax.php' ),
				'preload_status' => wpsc_get_preload_status( true ),
			)
		);
	}
}