Make WordPress Core

Changeset 56398


Ignore:
Timestamp:
08/16/2023 12:13:45 AM (6 months ago)
Author:
westonruter
Message:

Editor: Use defer loading strategy for block view scripts.

Props westonruter, joemcgill.
Fixes #59115.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r56382 r56398  
    171171        $script_uri,
    172172        $script_dependencies,
    173         isset( $script_asset['version'] ) ? $script_asset['version'] : false
     173        isset( $script_asset['version'] ) ? $script_asset['version'] : false,
     174        array( 'strategy' => 'defer' )
    174175    );
    175176    if ( ! $result ) {
Note: See TracChangeset for help on using the changeset viewer.