browser-required
它能做什么
这项技能说明为什么性能检查应在真实浏览器中运行,以及如何将其加入工作流程。适合希望获得准确速度测量结果的开发者。
适用场景
- ✓当你想测量页面速度和加载指标时。
- ✓当仅靠代码审查无法解释页面为何很慢时。
- ✓当你希望把速度检查加入构建流程时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/browser-required/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的首页上运行一次真实浏览器的性能测试,并告诉我是什么拖慢了它。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用 Lighthouse 或 Puppeteer 等基于浏览器的工具加载页面、运行脚本,并报告 LCP、CLS 和 INP 等指标。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Perform browser-based performance audits
Static analysis alone cannot simulate the complex rendering, script execution, and layout processes of modern web browsers, which is essential for capturing real-world performance.
Quick Reference
- Use real browser engines to capture runtime metrics (LCP, CLS, INP)
- Synthetic tests in full browsers reveal execution bottlenecks
- Verify performance across different device and connection simulations
Check
Ensure that performance audits are conducted in an environment that executes JavaScript and renders the page (e.g., Lighthouse, Puppeteer).
Fix
Integrate browser-based testing tools like Lighthouse or WebPageTest into the development workflow and CI/CD pipeline.
Explain
Explain the limitations of static analysis for performance and why a full browser environment is necessary.
Code Review
Review the routes, assets, and loading behavior that affect Perform browser-based performance audits. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/performance/browser-required
常见问题
这种方法能捕捉哪些指标?
这项技能列举了 LCP、CLS 和 INP,它们是在浏览器中捕捉的运行时指标。
它提到了哪些工具?
Lighthouse、WebPageTest 和 Puppeteer。
这些测试能自动运行吗?
能。这项技能建议把浏览器测试加入开发工作流程和 CI/CD 流程。
详情
作者的原始描述
Use when auditing slow page loads, heavy assets, or rendering delays related to Perform browser-based performance audits. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.
热度
- GitHub 星标
- 75k
- 排名
- #2763
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。