Load localized data on print rather than initialization.

These localizations require information that may not be loaded even by init.

Signature

wp_just_in_time_script_localization()

Return

(void)

Source

function wp_just_in_time_script_localization() {

	wp_localize_script( 'autosave', 'autosaveL10n', array(
		'autosaveInterval' => AUTOSAVE_INTERVAL,
		'blog_id' => get_current_blog_id(),
	) );

}
WP Trac GitHub

Link here