Skip to content

Commit dab5cc0

Browse files
committed
Performance: Only load dashicons when the pledge teams block is rendered
1 parent f8ad87c commit dab5cc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

themes/wporg-5ftf-2024/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function enqueue_assets() {
4444
wp_enqueue_style(
4545
'wporg-5ftf-2024',
4646
get_theme_file_uri( 'build/style/style-index.css' ),
47-
array( 'wporg-parent-2021-style', 'wporg-global-fonts', 'dashicons' ),
47+
array( 'wporg-parent-2021-style', 'wporg-global-fonts' ),
4848
$metadata['version']
4949
);
5050
}

themes/wporg-5ftf-2024/src/pledge-teams/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
},
1414
"usesContext": [ "postId", "postType" ],
1515
"editorScript": "file:./index.js",
16-
"style": "file:./style-index.css",
16+
"style": [ "dashicons", "file:./style-index.css" ],
1717
"render": "file:./render.php"
1818
}

0 commit comments

Comments
 (0)