Block Styles
v1.0.1Joost de Valk · 2020年6月12日 上架
Change the way styles for blocks get loaded, optimize your site's performance and sustainability!
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 2,505
- 最近更新
- 2020年7月17日
需要 WordPress 5.0+已测试到 5.4.26PHP 5.6+
贡献者
Increase the performance of your website by removing the default styles for WordPress-Core blocks, and only enqueue styles for the blocks you use on a page.
You can choose to add styles on the head of your pages, on the footer, inline only when the block exists, or even completely disable styles. And all of that, per-block!
IMPORTANT: Depending on how your theme overrides default styles – if it even does, you may see issues due to the loading order of CSS files, or insufficient specificity from the theme’s CSS rules.
We urge you to experiment with the options for blocks and find what suits your use-case better.