本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2896

interaction-to-next-paint

できること

このスキルは、クリックやタップなどの訪問者の操作に、ページがどれだけ速く反応するかを確認します。反応がよくなめらかなインターフェースを作りたい開発者向けです。

使う場面

  • ✓クリックの後、ボタンやメニューの反応が遅く感じるとき。
  • ✓ページが Interaction to Next Paint で低いスコアのとき。
  • ✓訪問者の操作中に、重いスクリプトがページをブロックしているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/interaction-to-next-paint/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/interaction-to-next-paint/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ボタンをクリックすると、なぜページが遅く感じるのですか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、次の視覚的な更新を遅らせる長いタスクと遅いイベントハンドラーを探します。重い処理を分割し、重い計算には Web Worker を使い、ハンドラーを簡単にすることを提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Optimize interaction to next paint

INP replaced FID as a Core Web Vital in 2024—it measures how quickly your page responds to user interactions throughout the session, not just the first interaction.

Quick Reference

  • INP measures responsiveness to ALL interactions—target under 200ms
  • Break up long tasks into smaller chunks
  • Use web workers for heavy computation
  • Optimize event handlers and avoid blocking the main thread

Check

Measure INP using Chrome DevTools or PageSpeed Insights. Verify interaction responses occur within 200ms.

Fix

Optimize event handlers, break up long tasks, use web workers for heavy computation, and reduce main thread blocking.

Explain

Explain how INP measures overall page responsiveness by tracking the latency of all user interactions during a page visit.

Code Review

Review the routes, assets, and loading behavior that affect Optimize interaction to next paint. 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/interaction-to-next-paint

よくある質問

INP は FID とどう違いますか?

INP は2024年に FID に代わる Core Web Vitals となり、訪問全体の反応を測るとこのスキルは説明しています。

どの目標を提案していますか?

200ミリ秒未満の応答を提案しています。

どのように測れますか?

Chrome DevTools または PageSpeed Insights を提案しています。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize interaction to next paint. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2896
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル