Eliminate render-blocking resources that delay your first paint
Visitors can be waiting on a blank page while the browser gets the styles and scripts it needs before showing content.
What are render-blocking resources?
Browsers normally wait for required stylesheets before drawing the page. A traditional script without async or defer also stops HTML parsing while it loads and runs. Blocking can be necessary; the aim is to keep the critical rendering path short.
How to reduce render-blocking CSS
Keep the styles needed for the first view small. Inlining critical CSS can remove a stylesheet request, but too much inline CSS makes the HTML heavier and can't be reused as a separate cached file. Load the rest of the CSS asynchronously or at the end of the <body>, and measure whether the trade-off pays off.
Should a render-blocking script use async or defer?
For external classic scripts, defer waits until HTML parsing finishes and preserves script order. async runs a script as soon as it's available, so don't rely on it for ordered dependencies. Google's resource-loading guide covers these choices.
How font-display swap affects visible text
font-display: swap shows a fallback font while the web font loads. A fallback with different proportions can still shift the layout when the font changes. Google's font-loading guide explains that trade-off.
Frequently asked questions
Should I preload every render-blocking resource?
No. Reserve preload for important resources the browser would otherwise discover late. Adding too many preloads can compete with the files the page needs most.
Should I preconnect to Google Fonts?
Yes, if your page loads them. Google Fonts recommends preconnecting to fonts.googleapis.com, and to fonts.gstatic.com with the crossorigin attribute, since font files load with CORS. That way the browser opens both connections early. Keep preconnect for the few origins the page needs most.
Reduce page weight as well as render blocking
Website speed
Find what makes your pages slow enough that visitors leave.
Page size
Reduce download weight and page complexity by removing code and content you no longer need.