Changes between Initial Version and Version 1 of Ticket #58454
- Timestamp:
- 06/05/2023 03:00:39 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58454
- Property Component General → Script Loader
-
Ticket #58454 – Description
initial v1 1 script-loader.php doesn't support font-display: optional, which is recommended by Google to reduce CLS.1 script-loader.php doesn't support `font-display: optional`, which is recommended by Google to reduce Cumulative Layout Shift. 2 2 3 3 Current code: … … 5 5 {{{ 6 6 // Check the font-display. 7 if ( !in_array($webfont['font-display'], array('auto', 'block', 'fallback', 'swap'), true)) {7 if ( ! in_array( $webfont['font-display'], array( 'auto', 'block', 'fallback', 'swap' ), true ) ) { 8 8 $webfont['font-display'] = 'fallback'; 9 9 } 10 10 }}} 11 11 12 font-display: optional combined with https://web.dev/preload-optional-fonts/ is recommended by Google to reduce CLS: 13 12 `font-display: optional` combined with `rel="preload"` is recommended by Google to reduce CLS: 14 13 https://web.dev/preload-optional-fonts/
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)