界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

css-critical

css-critical

在审查与 Inline critical CSS for faster rendering 相关的样式表、组件样式和响应式行为时使用。在提出修复建议之前,检查各断点和交互状态下的渲染布局。

AI 翻译

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: css-critical description: "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." metadata: category: css priority: high difficulty: advanced estimatedTime: "30" source: frontendchecklist.io url: https://frontendchecklist.io/rules/css/css-critical

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
  • 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

我的收藏