css-non-blocking
Installation
SKILL.md
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.