mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
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
This commit is contained in:
parent
d44c6e5fda
commit
73be6804d2
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user