mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 20:51:55 +02:00
Script Loader: Use defer loading strategy for wp-embed script and move to head (in block themes).
Props westonruter, flixos90, swissspidy. Fixes #58931. git-svn-id: https://develop.svn.wordpress.org/trunk@56355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5b5d174a30
commit
1fc10c92a2
@ -1349,7 +1349,8 @@ function wp_default_scripts( $scripts ) {
|
||||
)
|
||||
);
|
||||
|
||||
$scripts->add( 'wp-embed', "/wp-includes/js/wp-embed$suffix.js", array(), false, 1 );
|
||||
$scripts->add( 'wp-embed', "/wp-includes/js/wp-embed$suffix.js" );
|
||||
did_action( 'init' ) && $scripts->add_data( 'wp-embed', 'strategy', 'defer' );
|
||||
|
||||
/*
|
||||
* To enqueue media-views or media-editor, call wp_enqueue_media().
|
||||
|
Loading…
x
Reference in New Issue
Block a user