wp_maybe_inline_styles()
Allows small styles to be inlined.
Description
This improves performance and sustainability, and is opt-in. Stylesheets can opt in by adding path data using wp_style_add_data, and defining the file’s absolute path:
wp_style_add_data( $style_handle, 'path', $file_path );
Source
File: wp-includes/script-loader.php
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |