Filters whether block styles should be loaded separately.
Description
Returning false loads all core block assets, regardless of whether they are rendered in a page or not. Returning true loads core block assets only when they are rendered.
Parameters
$load_separate_assetsbool
Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
2599*2600* @since 5.8.02601*2602* @param bool$load_separate_assets Whether separate assets will be loaded.2603*Defaultfalse(all block assets are loaded, even when not used).2604*/2605returnapply_filters('should_load_separate_core_block_assets',false);2606}26072608/**2609* Enqueues registered block scripts and styles, depending on current rendered2610*context(only enqueuing editor scripts while in context of the editor).2611*
History
Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.