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

render-blocking

できること

このスキルは、ページの表示を止めているCSSやJavaScriptのファイルを見つけ、その読み込み方を変えます。ページの内容を早く見せたい制作者向けです。

使う場面

  • ✓ページの読み込み中に何が表示を止めているかを見つけるようエージェントに頼むとき。
  • ✓ページが長い間、白い画面のまま何も表示されないとき。
  • ✓ページのheadで、スクリプトやスタイルシートがどのように読み込まれているかを確認しているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/render-blocking/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のページは、何かが表示されるまで長く真っ白なままです。表示を止めているファイルを見つけて、読み込み方を直してください。”

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

仕組み

エージェントは、ページの冒頭で読み込まれるCSSとJavaScriptを調べ、最初の描画を止めているものを見つけます。安全な場合はdeferやasyncを追加し、重要ではないスタイルを移し、重要なCSSをインラインにすることもあります。

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

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

Eliminate render-blocking resources

Render-blocking resources prevent the browser from painting anything on the screen, leading to a "white screen" effect and poor user experience.

Quick Reference

  • Load non-critical CSS and JS asynchronously using defer, async, or media queries
  • Inline critical CSS to allow the page to start rendering immediately
  • Avoid @import in CSS as it creates serial request chains

Check

Review the page's resources and identify any CSS or JavaScript files that are blocking the initial render of the page.

Fix

Update the loading strategy for render-blocking resources by using defer, async, or inlining critical styles.

Explain

Explain how render-blocking resources impact the First Contentful Paint (FCP) and how to resolve them.

Code Review

Review the routes, assets, and loading behavior that affect Eliminate render-blocking resources. 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/render-blocking

よくある質問

deferとasyncの違いは何ですか?

このスキルは、どちらもページを止めずにスクリプトを読み込む方法として挙げており、どちらが適切かはスクリプトの使い方によります。

CSSのimportルールを避けるべきなのはなぜですか?

このスキルによると、リクエストが次々に順番に読み込まれる連鎖を生むからです。

これはページにどう影響しますか?

最初のコンテンツが画面に現れるまでの時間であるFirst Contentful Paintが改善されます。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Eliminate render-blocking resources. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル