springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-18 13:59:17
85
我只是想要一些关于WordPress中这个标签的澄清和建议。
即使我没有使用古登堡,这个标签也会显示在我的WordPress头部。
link rel="stylesheet" id="wp-block-library-css"
这是必要的还是必须的?我需要删除它来提高页面速度吗?如果我删除这个标签,会有什么影响吗?
请告诉我.
谢谢了
顺晟科技:
我过去常常在不使用古登堡的网站上删除这个样式表。
我认为除了删除此样式表之外,没有其他影响,您可以安全地执行此操作。
为了更进一步,你可以只为某些文章类型删除它,比如
function remove_wp_block_library_css() {
if( !is_singular('post') ) {
wp_dequeue_style( 'wp-block-library' );
}
}
add_action( 'wp_enqueue_scripts', 'remove_wp_block_library_css' );
如果你根本没有使用古登堡,你可以像这样进一步卸载样式:
// Unload Gutenberg-related stylesheets.
add_action( 'wp_enqueue_scripts', 'remove_block_css', 100 );
function remove_block_css() {
wp_dequeue_style( 'wp-block-library' ); // Wordpress core
wp_dequeue_style( 'wp-block-library-theme' ); // Wordpress core
wp_dequeue_style( 'wc-block-style' ); // WooCommerce
wp_dequeue_style( 'storefront-gutenberg-blocks' ); // Storefront theme
}
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11