Assets - markhowellsmead/helpers GitHub Wiki
Force assets
Stop CSS from being inlined.
add_filter('styles_inline_size_limit', '__return_zero');
add_filter('should_load_separate_core_block_assets', '__return_false');
Inlining theme or plugin assets
Improving enqueue behaviour to allow enqueued styles to be loaded as inline style
tags.
Via.
wp_enqueue_style( 'my-custom-styles', get_theme_file_uri( '/assets/theme.css' ), array(), $asset['version'] );
wp_style_add_data( 'my-custom-styles', 'path', get_theme_file_path( '/assets/theme.css' ) );