function wp_just_in_time_script_localization() {}

Load localized data on print rather than initialization.
These localizations require information that may not be loaded even by init.

Source code

function wp_just_in_time_script_localization() {

	wp_localize_script( 'autosave', 'autosaveL10n', array(

		'autosaveInterval' => AUTOSAVE_INTERVAL,

		'savingText' => __('Saving Draft…'),

		'saveAlert' => __('The changes you made will be lost if you navigate away from this page.')

	) );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: