mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-21 10:33:44 +03:00
Performance: Only load dashicons when the pledge teams block is rendered
This commit is contained in:
parent
f8ad87c5aa
commit
dab5cc0c2d
|
@ -44,7 +44,7 @@ function enqueue_assets() {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'wporg-5ftf-2024',
|
'wporg-5ftf-2024',
|
||||||
get_theme_file_uri( 'build/style/style-index.css' ),
|
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']
|
$metadata['version']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
},
|
},
|
||||||
"usesContext": [ "postId", "postType" ],
|
"usesContext": [ "postId", "postType" ],
|
||||||
"editorScript": "file:./index.js",
|
"editorScript": "file:./index.js",
|
||||||
"style": "file:./style-index.css",
|
"style": [ "dashicons", "file:./style-index.css" ],
|
||||||
"render": "file:./render.php"
|
"render": "file:./render.php"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue