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

css-critical

できること

このスキルは、最初の画面に必要なクリティカルなCSSをインライン化し、残りを後から読み込む方法を説明します。最初の描画を速くし、読み込みのスコアを良くしたい開発者向けです。

使う場面

  • ✓大きなスタイルシートのせいで、最初の画面が表示されるまで時間がかかるとき。
  • ✓Lighthouseが、描画を妨げるCSSを指摘しているとき。
  • ✓クリティカルなスタイルを自動で抽出すべきビルドの流れを設定するとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のホームページの上部セクションに必要なスタイルを見つけ、ページが速く表示されるようインライン化してください。”

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

仕組み

エージェントは、ファーストビューのスタイルを抽出してheadに置き、残りのCSSを、できれば自動化されたビルドツールを通じて、描画を妨げずに読み込みます。

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

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

Inline critical CSS for faster rendering

Critical CSS eliminates render-blocking resources, enabling browsers to paint content immediately—directly improving LCP and FCP scores.

Quick Reference

  • Inline ~14KB of critical above-the-fold CSS in <head>
  • Use tools: critical, critters, or Lighthouse to extract
  • Load remaining CSS asynchronously after page load
  • Automate in build process—don't manually maintain

Check

Analyze this page's CSS loading strategy to identify critical above-the-fold styles that should be inlined and non-critical styles that can be loaded asynchronously.

Fix

Extract and inline critical CSS for above-the-fold content, then load remaining CSS asynchronously to improve initial page render performance.

Explain

Explain how critical CSS improves Core Web Vitals by reducing render-blocking resources and enabling faster First Contentful Paint and Largest Contentful Paint.

Code Review

Review stylesheets, component styles, and responsive states related to Inline critical CSS for faster rendering. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/css/css-critical

よくある質問

どのくらいのCSSをインライン化すべきですか?

ファーストビューのクリティカルなCSSは約14KBが目安だと、このスキルは提案しています。

どのツールが抽出しますか?

critical、critters、Lighthouseが挙げられています。

クリティカルなCSSは、手で保守すべきですか?

いいえ。ビルドの流れで自動化すべきだと、このスキルは説明しています。

詳細

作者による元の説明

Use when reviewing stylesheets, component styles, and responsive behavior related to Inline critical CSS for faster rendering. Check the rendered layout across breakpoints and interaction states before proposing a fix.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル