Performance: Only load dashicons when the pledge teams block is rendered

This commit is contained in:
Kelly Dwan 2024-09-12 11:41:33 -04:00
parent f8ad87c5aa
commit dab5cc0c2d
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ function enqueue_assets() {
wp_enqueue_style(
'wporg-5ftf-2024',
get_theme_file_uri( 'build/style/style-index.css' ),
array( 'wporg-parent-2021-style', 'wporg-global-fonts', 'dashicons' ),
array( 'wporg-parent-2021-style', 'wporg-global-fonts' ),
$metadata['version']
);
}

View file

@ -13,6 +13,6 @@
},
"usesContext": [ "postId", "postType" ],
"editorScript": "file:./index.js",
"style": "file:./style-index.css",
"style": [ "dashicons", "file:./style-index.css" ],
"render": "file:./render.php"
}