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

css-non-blocking

できること

このスキルは、スタイルシートの読み込み方を確認し、ページを止めていないことを確かめます。サイトの最初の印象を速くしたい開発者向けです。

使う場面

  • ✓スタイルシートのダウンロード中に、ページが白い画面のままになるとき。
  • ✓Lighthouseが、描画を妨げるCSSを指摘しているとき。
  • ✓スタイルを画面サイズや機能ごとに分けるかどうかを決めているとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“スタイルシートの読み込みの間、私のページが一瞬白いままです。内容がより早く表示されるように、CSSの読み込み方を変えてください。”

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

仕組み

エージェントは、media属性またはonloadのハンドラーを使ったプリロードの方法をスタイルシートに適用し、残りがバックグラウンドで読み込めるように、クリティカルなスタイルをインライン化します。

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

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

Load CSS without blocking render

Render-blocking CSS delays First Contentful Paint—users see a blank screen while waiting for stylesheets to download and parse.

Quick Reference

  • Use <link rel="preload" as="style"> with onload handler
  • Inline critical CSS, defer non-critical styles
  • Use media queries to split CSS by viewport/feature
  • Modern: Next.js/Vite handle this automatically

Check

Analyze this CSS loading implementation to ensure stylesheets are loaded without blocking the DOM parsing and rendering process.

Fix

Implement non-blocking CSS loading using the preload technique with media attributes and loadCSS polyfill for better performance.

Explain

Explain how non-blocking CSS loading improves page performance by preventing render-blocking resources from delaying the initial paint.

Code Review

Review stylesheets, component styles, and responsive states related to Load CSS without blocking render. 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-non-blocking

よくある質問

描画を妨げるCSSは、なぜ問題ですか?

最初のコンテンツの描画を遅らせ、スタイルシートが読み込まれる間、利用者が白い画面を見ることになると、このスキルは説明しています。

このスキルが挙げるツールはありますか?

loadCSSのポリフィルが、このスキルの挙げる選択肢の一つです。

最近のフレームワークは、これを扱いますか?

Next.jsやViteなどのフレームワークは、多くの場合これを自動で扱うと、このスキルは説明しています。

詳細

作者による元の説明

Use when reviewing stylesheets, component styles, and responsive behavior related to Load CSS without blocking render. Check the rendered layout across breakpoints and interaction states before proposing a fix.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル