# Preload & Resource Hints for WordPress

> Preconnect to third-party origins, preload key files, and prefetch pages before visitors click them. Part of Toggleworks, one plugin for the whole site.

TW-PRF-15 Performance


Preconnect to third-party origins, preload key files, and prefetch pages before visitors click them.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Preload & Resource Hints

**Part number**
: TW-PRF-15
**Section**
: [Performance](https://togglework.app/features/performance/)
**Settings**
: 13 (5 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Resource hints let the browser start work before it would otherwise know it needs to: open a connection to a font or payment provider early, fetch your main font first, or load the next page while the visitor is still hovering over the link. Used well, they make sites feel instant.

### What it does

- Preconnect and DNS-prefetch for third-party origins.
- Preload for key files such as your main web font.
- Prefetches same-site links on hover or touch, skipping admin, login, cart and file links.
- Configures WordPress’s own Speculation Rules (6.8+): prefetch or prerender, and how eagerly.
- Respects slow connections and Data Saver, and stops after repeated errors.

![Preload & Resource Hints settings screen in the Toggleworks WordPress plugin, showing Preconnect, DNS prefetch, Preload, Prefetch](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-preload-hints.webp?v=1795524221)

The Preload & Resource Hints screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch it on and add the two to four third-party origins every page uses to **Preconnect** .
2. Preload your main body font (as font, with crossorigin).
3. Turn on hover prefetching and test a few clicks: pages should open almost instantly.

## What you can set

Switch Preload & Resource Hints on in Toggleworks → Performance, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Preconnect
- DNS prefetch
- Preload
- Prefetch
- Prefetch links on hover / touch
- Also on phones and tablets
- Also on slow connections
- Stop after errors
- Prefetch linked images too
- Most prefetches per page
- Always prefetch these pages
- Speculation Rules
- Speculation eagerness

## Good to know

- Preconnecting to more than a handful of origins wastes the connections it was meant to save.
- Prerendering runs page JavaScript ahead of time and can inflate analytics page views. Use prefetch unless you have tested it.

[Guide: How to speed up a WordPress site, in the right order](https://togglework.app/guides/speed-up-wordpress/)

## One less plugin to install

Preload & Resource Hints does a job people often install a separate plugin for:

- Preloading and resource hintsOften done with WP Rocket
- Preload, prefetch and preconnect hintsOften done with Perfmatters

## Comes with 187 more parts

Preload & Resource Hints is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Performance parts](https://togglework.app/features/performance/)

### People also look for it as

- preload
- preconnect
- dns-prefetch
- prefetch
- prerender
- speculation rules
- instant page
- hover
- fonts
- lcp

## Often switched on with it

- [Critical CSS](https://togglework.app/features/performance/critical-css/) — TW-PRF-03 · Inlines only the CSS needed for the top of each page and loads the rest without blocking — fixing the “eliminate render-blocking… · 5 settings
- [Lazy Load](https://togglework.app/features/performance/lazy-load/) — TW-PRF-11 · Lazy load images and iframes across the whole page while keeping the first images eager for a fast LCP. Optional click-to-play… · 14 settings
- [Asset Manager](https://togglework.app/features/performance/asset-manager/) — TW-PRF-01 · See every CSS and JavaScript file a page loads and switch off the ones it does not need — on one page, everywhere, or everywhere… · Own screen in wp-admin
- [Browser Cache Headers](https://togglework.app/features/performance/page-cache-headers/) — TW-PRF-14 · Let browsers and proxies cache pages for logged-out visitors, and optionally strip ?ver= from asset URLs. · 2 settings
- [Bulk WebP Converter](https://togglework.app/features/performance/webp-converter/) — TW-PRF-18 · Convert your existing media library to WebP in the background and serve the smaller files automatically. Originals are kept, so… · 3 settings
- [CDN Rewrite](https://togglework.app/features/performance/cdn-rewrite/) — TW-PRF-02 · Serve images, CSS and JavaScript from a CDN or pull zone by rewriting their URLs on the front end. · 6 settings

## Questions

**Is Preload & Resource Hints included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Preload & Resource Hints among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Preload & Resource Hints slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Preload & Resource Hints only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Preload & Resource Hints before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/performance/preload-hints/
