
Search Console Regex Filters: 12 Examples That Work
Search Console regex filters explained: RE2 rules, case sensitivity, and copy ready examples for questions, brand, long-tail queries and URL folders.
Read article
This guide is for site owners, WordPress developers and SEOs who want a faster first screen without guessing which link tags to add. You will learn the real difference in preload vs preconnect, when dns-prefetch, prefetch and modulepreload fit better, and the small attribute mistakes that make a hint useless or even harmful.
Preconnect opens a connection to another origin early, so use it when you know which third-party server the page needs soon but not the exact file. Preload downloads one exact file early, so use it for a critical font or the LCP image the browser finds late. Keep preconnects to about two origins.

Preconnect warms up a connection, while preload fetches a specific file. A preconnect hint does the DNS lookup, TCP handshake and TLS negotiation for another origin, so the first request to it starts sooner. A preload hint downloads one named resource with the right priority, so it is ready when the page asks for it.
The choice depends on what you know when you write the tag. If you only know the origin, as with fonts.gstatic.com behind a Google Fonts stylesheet, preconnect is the only option. If you know the exact URL and the browser would otherwise discover it late, preload is stronger. The table compares all five hints.
| Hint | What it does | Use it for | Watch out for |
|---|---|---|---|
| preconnect | DNS, TCP and TLS to another origin | 1 or 2 critical third-party origins | crossorigin for fonts; unused after 10 seconds |
| dns-prefetch | DNS lookup only | Less critical third-party origins | Separate tag from preconnect |
| preload | Downloads one file for this page | Late-discovered fonts, CSS images, the LCP image | Missing as; fonts without crossorigin |
| prefetch | Low priority fetch for a next page | Files for the likely next navigation | Not for the current page |
| modulepreload | Fetches and compiles a JS module | Critical ES modules | Dependencies not guaranteed |
Use preconnect for the one or two third-party origins that the page requests early and that sit on the critical path, such as a font host or an image CDN. web.dev’s guide to establishing network connections early says the hint “is best used for only the most critical connections”, and that “the browser closes any connection that isn’t used within 10 seconds”, so a preconnect to an origin used later is wasted.
Fonts need one extra detail. They load in CORS mode, so the preconnect needs the crossorigin attribute; web.dev warns that “If you omit the crossorigin attribute, the browser only performs the DNS lookup.” Preconnecting to your own domain does nothing, because that connection is already open. The resource hints generator flags both mistakes.
Use preload for a file the current page needs early that the browser cannot see in the HTML, such as a font referenced inside a stylesheet, a background image set in CSS or a script loaded by another script. web.dev’s guide to preloading critical assets lists the attribute rules that matter most.
Only preload the LCP image when the browser finds it late, for example a CSS background or an image injected by JavaScript. A normal img tag near the top of the HTML is already discovered early, and fetchpriority="high" on the img is usually enough. web.dev describes fetchpriority as “a hint, not a directive” and recommends it “to boost the priority of the LCP or other critical images”.
For a responsive image, the preload must name the same file the img would choose. Use imagesrcset and imagesizes with the same values as the img’s srcset and sizes; the srcset generator writes both. If you use WordPress, my guide on how to reduce LCP in WordPress covers where themes and plugins add these tags, and the lazy loading guide explains why the LCP image must never be lazy-loaded.
Each of the other three hints solves a narrower problem. dns-prefetch only resolves a domain name, so it is the cheap choice for third-party origins that matter but are not critical, such as analytics. web.dev says it can also serve as a fallback for preconnect, but only in a separate tag, because combining both values in one tag “causes a bug in Safari where preconnect gets cancelled”.
prefetch fetches a resource for a likely next page at low priority and keeps it in the HTTP cache; MDN now advises the Speculation Rules API for whole documents where it is supported. modulepreload fetches a JavaScript module and, unlike preload, also parses and compiles it so it is ready to run. MDN notes that a browser may fetch its dependencies too, but only listing each module guarantees it.
Keep preconnect to about 2 origins and preload to the few files the first screen cannot do without. Lighthouse’s preconnect audit warns when it finds “More than 2” preconnect links and says they “should be used sparingly and only to the most important origins”. For preload, web.dev puts it simply: “If too many resources are prioritized, effectively none of them are.”
Every hint competes for the same bandwidth, so check the whole page before adding more. The page weight budget calculator shows which file types make up the page and how long it takes to download on a slow connection. If images or JavaScript already push the page over budget, cutting weight helps more than another hint. Google’s Core Web Vitals documentation asks for LCP within 2.5 seconds, INP under 200 milliseconds and CLS under 0.1, so measure those before and after with the Core Web Vitals checker.
Yes, for preconnect and preload. MDN’s Link header reference says “The only relations that work reliably are preconnect and preload, which can be combined with 103 Early Hints.” The header form looks like Link: <https://fonts.gstatic.com>; rel=preconnect; crossorigin, with several links separated by commas.
A header lets the browser start before it has read any HTML, which helps when the server takes time to build the page. web.dev warns that responsive image preloads may not be supported in a header, because the viewport is unknown at that point, so keep those in the HTML. The generator writes the header for you and leaves out the hints that do not belong there.
Example: a made-up WordPress site at https://www.example.com has 8 hints in its head, including 3 preconnects (fonts.gstatic.com, an image CDN and Google Tag Manager) and a font preload with as=”font” but no crossorigin. The resource hints generator outputs 11 link tags with 1 warning, more than 2 preconnects, and 2 auto-fixes that add crossorigin and type=”font/woff2″ to the font. After changing the Tag Manager line to dns-prefetch, the list gives 10 link tags and 0 warnings. The page weight budget calculator then shows the real problem: 1,480 KB against a 1,200 KB budget, with images making up 60.8% of the page.
Neither is better in general. Preload is stronger when you know the exact file, because it downloads it. Preconnect is the right choice when you only know the origin. Using preload for a file the browser already finds early adds nothing.
If you load fonts from Google Fonts, preconnect to fonts.gstatic.com with the crossorigin attribute, because the font files come from there and load in CORS mode. Self-hosting the fonts on your own domain removes the need for that preconnect.
Not directly. They can make pages load faster for visitors, which can improve LCP, one of the Core Web Vitals that Google measures. A wrong hint can also slow the page down, so test with real data before and after.
Chrome warns when a preloaded file is not used soon after the page loads. Usually the URL differs from the one the page requests, the as value is wrong, or a font preload is missing crossorigin, so the browser downloads the file again.
Yes. Many themes and performance plugins can add preconnect, dns-prefetch and preload tags for you. Check the page source for duplicates and for preconnects to origins the page no longer uses, then remove the extras in the plugin or theme settings.
Yes, as two separate tags for the same origin. dns-prefetch acts as a fallback in browsers without preconnect support. web.dev warns that putting both values in one rel attribute causes a Safari bug that cancels the preconnect.
This guide is part of my Core Web Vitals guide.
Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.
Want your pages to load faster and pass Core Web Vitals? See my technical SEO service.

Search Console regex filters explained: RE2 rules, case sensitivity, and copy ready examples for questions, brand, long-tail queries and URL folders.
Read article
Nginx vs Apache redirects: how 301 and 302 rules differ, why .htaccess rules break on Nginx, how to handle trailing slashes and…
Read article
QAPage vs DiscussionForumPosting schema: Google's rule for choosing, what each type requires, which pages qualify for neither, and how to test the…
Read articleSend your website and I will reply with a free audit.