[WordPress] 外掛分享: MachStyle

首頁外掛目錄 › MachStyle
WordPress 外掛 MachStyle 的封面圖片
全新外掛
安裝啟用
尚無評分
19 天前
最後更新
問題解決
WordPress 6.5+ PHP 8.1+ v1.1.3 上架:2026-05-01

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「MachStyle」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

MachStyle helps your pages feel faster by loading critical styles first and delaying selected non-critical CSS.
You decide where this happens using simple rules. For many sites, this can help improve Core Web Vitals.
MachStyle is designed for practical, low-risk testing:

Create rules for specific page groups, post types, or URL patterns.
Test changes safely in Test Flight before they affect real visitors.
Compare results in performance tools like PageSpeed Insights before going live.
Copy tested rules to live settings when ready.

Small, measured changes work best. Test, compare, then roll out.
How to Use

Open MachStyle and go to Test Flight.
Add one rule for one page group, such as the home page, a post type, or a URL pattern.
Add the style handles you want to defer. Use the Audit Panel to find style handles.
Check the page on desktop and mobile.
Run PageSpeed on the Test Flight URL and compare the result with your normal live URL.
If the page looks correct and the metrics improve, copy the rules to Live Settings.
Enable live optimization.

How to Use Audit Panel
Audit Panel is a tool that helps you find style handles to defer.

Open the frontend of your website and open Audit Panel from MachStyle menu in admin bar.
Click on any stylesheet to temporarily remove its styling. This shows you what the page looks like for a fraction of second during load.
Look at the top of your site. If it still looks readable and organized without that style, it’s a great candidate to stay deferred.
If the page looks messy or the header breaks, that style is important for the first impression. Click it again to turn it back on.
Once finished, click Copy Handles button to get your optimized list and add it to your MachStyle settings.

What to Defer First
Start with styles that are useful but not needed immediately:

Footer styles
Slider and carousel styles
Form styles on pages that do not show forms right away
Social share or widget styles below the fold
Extra builder or block styles not needed at first paint

What Not to Defer
Avoid deferring styles that control first-view layout:

Main theme layout styles
Header, menu, and hero section styles
Checkout and cart critical styles
Any style that causes visible layout shifts when delayed

Development & Contribution
MachStyle is open source and welcomes contributions!

GitHub Repository: https://github.com/Utsav-Ladani/MachStyle
Report Issues: https://github.com/Utsav-Ladani/MachStyle/issues
Feature Requests: https://github.com/Utsav-Ladani/MachStyle/issues
Contribute Code: Fork the repository and submit pull requests

延伸相關外掛

文章
Filter
Apply Filters
Mastodon