跳到内容

MachStyle

v1.1.3

Utsav Ladani · 2026年5月2日 上架

MachStyle helps your pages feel faster by loading critical styles first and delaying selected non-critical CSS.

正在使用
10 以下
评分
暂无
累计下载
541
最近更新
2026年5月31日
需要 WordPress 6.5+已测试到 7.0.9PHP 8.1+

贡献者

截图

MachStyle Live Settings page
MachStyle Live Settings page
MachStyle Test Flight page
MachStyle Test Flight page
Audit Panel
Audit Panel

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

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

How to Use Audit Panel

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

  1. Open the frontend of your website and open Audit Panel from MachStyle menu in admin bar.
  2. Click on any stylesheet to temporarily remove its styling. This shows you what the page looks like for a fraction of second during load.
  3. 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.
  4. 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.
  5. 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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums