Skip to content

Commit

Permalink
Performance: Only load dashicons when the pledge teams block is rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Sep 12, 2024
1 parent f8ad87c commit dab5cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/wporg-5ftf-2024/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
);
}
Expand Down
2 changes: 1 addition & 1 deletion themes/wporg-5ftf-2024/src/pledge-teams/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit dab5cc0

Please sign in to comment.