DNS Prefetch and Preconnect are browser resource hints that tell the browser to prepare for loading external resources early, so third-party assets (fonts, scripts, analytics, APIs, CDNs, etc.) load faster when needed.
DNS Prefetch resolves the domain name early (finds its IP).
Preconnect goes further — resolving DNS and opening a TCP connection and TLS handshake ahead of time. OMM +1
Adding these hints — especially for critical external domains — can reduce latency and improve performance metrics such as Largest Contentful Paint (LCP) and other Core Web Vitals. WP Rocket
1. Pre Party Resource Hints* (Best Dedicated DNS Prefetch/Preconnect Plugin)
Pre Party Resource Hints* is a free WordPress plugin that lets you easily add resource hints like DNS prefetch, preconnect, prefetch, preload, and prerender to your site — without coding.
Key Features
- Adds DNS Prefetch hints for third-party domains
- Adds Preconnect hints for faster external connections
- Supports other resource hints like prefetch, preload, and prerender
- Let’s you choose whether hints go in the section or HTTP headers
- Works automatically once configured with domains
Download Link
Pre Party Resource Hints* (official WordPress.org plugin):
https://wordpress.org/plugins/pre-party-browser-hints/
WordPress.com
2. DNS/Preconnect with Performance Plugins
Some performance optimization plugins include DNS prefetch and preconnect helpers as part of broader speed toolsets:
Perfmatters
A lightweight premium performance plugin that lets you add DNS prefetch and preconnect hints in its settings (under resource hints/preloading).
Perfmatters also provides other optimizations like script control, lazy loading, and disabling unused features. BrowserStack
Note: Perfmatters is premium — not on WordPress.org.
- Purchase / Download Link: https://perfmatters.io/
- (Install as a premium plugin via upload in WordPress.)
LiteSpeed Cache
Includes DNS Prefetch controls in its Page Optimization → HTML settings — where you can enter external domains to prefetch.
Also includes many other performance features (caching, minification, etc.).

