JavaScript snippets for measuring web performance in Chrome DevTools. Execute with mcpchrome-devtoolsevaluatescript, capture output with mcpchrome-devtoolsgetconsolemessage.
| Cumulative Layout Shift (CLS) | Quick check for Cumulative Layout Shift, a Core Web Vital that measures visual stability | scripts/CLS.js | | Interaction to Next Paint (INP) | Tracks Interaction to Next Paint, a Core Web Vital that measures responsiveness | scripts/INP.js |
| LCP Image Entropy | Checks if images qualify as LCP candidates based on their entropy (bits per pixel) | scripts/LCP-Image-Entropy.js | | LCP Sub-Parts | Breaks down Largest Contentful Paint into its four phases to identify optimization opportunities | scripts/LCP-Sub-Parts.js |
자동화된 워크플로우 및 의사결정 트리를 통한 지능형 코어 웹 바이탈 분석. 결과에 따라 후속 분석을 자동으로 결정하는 디버깅 안내를 통해 LCP, CLS, INP를 측정합니다. LCP 심층 분석(5단계), CLS 조사(로딩 대 상호 작용), INP 디버깅(대기 시간 분석 + 속성), 로딩, 상호 작용 및 미디어 기술을 사용한 교차 기술 통합을 위한 워크플로가 포함됩니다. 사용자가 핵심 웹 바이탈, LCP 최적화, 레이아웃 변경 또는 상호 작용 응답성에 관해 질문할 때 사용합니다. Chrome DevTools MCP와 호환됩니다. 출처: nucliweb/webperf-snippets.