PERF005warningPro

render-blocking-font-import

@import url() for external font CDNs blocks rendering until the font CSS is fetched

Applies to: CSS, LESS, SASS, SCSS

Why this matters

Using @import url('https://fonts.googleapis.com/...') in CSS creates a render-blocking waterfall: the browser must download your CSS, discover the @import, fetch the Google Fonts CSS, then download the font files — all before first paint. Self-hosting fonts via next/font/google eliminates this chain by inlining font declarations and serving font files from your own domain.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, PERF005 includedstablestack explain PERF005

PERF005 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: PERF005