Skip to content

Commit 73be680

Browse files
committed
Script Loader: Delay loading comment-reply script with async loading strategy.
Props westonruter, flixos90, joemcgill, sergiomdgomes. See #12009. Fixes #58870. git-svn-id: https://develop.svn.wordpress.org/trunk@56323 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d44c6e5 commit 73be680

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-includes/script-loader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ function wp_default_scripts( $scripts ) {
10071007
did_action( 'init' ) && $scripts->localize( 'swfupload-handlers', 'swfuploadL10n', $uploader_l10n );
10081008

10091009
$scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", array(), false, 1 );
1010+
did_action( 'init' ) && $scripts->add_data( 'comment-reply', 'strategy', 'async' );
10101011

10111012
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2015-05-03' );
10121013
did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );

0 commit comments

Comments
 (0)