
內容簡介
這個外掛會停用自 WordPress 5.9 起所內嵌的全域樣式,也會移除在開始 body 標籤後加入的 duotone SVGs。
即使您並未使用全站編輯,自 WordPress 5.9 起,核心仍會在您的網站所有頁面上新增內嵌樣式和一些 duotone SVGs。
全域內嵌樣式並不是很大,但也不是很小。將近 5 KB 加入文件可能會對您的文件產生影響。
此外,如果您不需要此樣式,為什麼需要在您的頁面上加入呢?
啟用 "Disable Global Style" 後,您就可以將它移除。
如何停用 WordPress 自版本 5.9 起新增的全域樣式
安裝 Disable Global Style
完成
這個外掛並不需要設定,只需要啟用就好了。
如何檢查全域樣式沒有內嵌
停用外掛
載入您網站的頁面
檢查元素(右鍵 => 檢查元素)
搜尋 "global-style-inline-css"
啟用外掛
再次搜尋 "global-style-inline-css"
如果在外掛停用時找到 "global-style-inline-css",但在啟用時找不到,就代表功能正常運作
在檢查之前,請先清除快取。
外掛標籤
開發者團隊
原文外掛簡介
It disables the global style inlined by WordPress since WP 5.9. It also removes the duotone SVGs added after the opening body tag.
Even if you don’t use the full site editing, since WordPress 5.9 you will have an inlined style and some duotone SVGs added by the core on all the pages of your website.
The global inlined style is not enormous, but it’s also not very little. Around 5 kB added to the document may make a difference if your document is already heavy.
Moreover, why should your page have this style if you don’t need it?
Activate Disable Global Style and you will get rid of it.
How to disable the global style added by WordPress since v. 5.9
Install Disable Global Style
Done
No settings needed for this plugin. Just activate it and that’s it.
How to check that the global style is not inlined
Disable the plugin
Load a page of your website
Inspect elements (right-click => Inspect Elements)
Search for “global-style-inline-css”
Activate the plugin
Search again “global-style-inline-css”
If you find “global-style-inline-css” when the plugin is not active, but you don’t find it when the plugin is active, it means that it works
Clear the cache if any before to check.
Backend Speed Optimization
Is your dashboard slow? We optimize admin performance by improving queries and reducing plugin load.
Read Backend Speed Optimization Service for more information.
