From ee1baf955cee7bab2e8f7309e7c5cc00a77a5e30 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 28 Jul 2023 17:17:24 +0000 Subject: [PATCH] Script Loader: Delay loading comment-reply script with async loading strategy. Props westonruter, flixos90, joemcgill, sergiomdgomes. See #12009. Fixes #58870. Built from https://develop.svn.wordpress.org/trunk@56323 git-svn-id: http://core.svn.wordpress.org/trunk@55835 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index f6564ad342..0cb6d9f3b1 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -1007,6 +1007,7 @@ function wp_default_scripts( $scripts ) { did_action( 'init' ) && $scripts->localize( 'swfupload-handlers', 'swfuploadL10n', $uploader_l10n ); $scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", array(), false, 1 ); + did_action( 'init' ) && $scripts->add_data( 'comment-reply', 'strategy', 'async' ); $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2015-05-03' ); did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a4b99a742e..5092156624 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56321'; +$wp_version = '6.4-alpha-56323'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.