should_load_block_assets_on_demand
should_load_block_assets_on_demand
Appears in: wordpress-6.8, wordpress-6.8.1, wordpress-6.8.2, wordpress-6.8.3, wordpress-6.9, wordpress-6.9.1, wordpress-6.9.2, wordpress-6.9.3, wordpress-6.9.4
Hook Type: filter
Displaying hooks found in version: wordpress-6.9.4apply_filters('should_load_block_assets_on_demand') is found 1 times:
- /wp-includes/script-loader.php line 2707
* @since 6.8.0 * * @param bool $load_assets_on_demand Whether to load block assets only when they are rendered. */ return apply_filters( 'should_load_block_assets_on_demand', $load_assets_on_demand ); } /** * Enqueues registered block scripts and styles, depending on current rendered * context (only enqueuing editor scripts while in context of the editor). *