Title: add dns-prefetch, and add as http headers
Last modified: April 5, 2026

---

# add dns-prefetch, and add as http headers

 *  [Mike Ando](https://wordpress.org/support/users/riumplus/)
 * (@riumplus)
 * [5 days, 12 hours ago](https://wordpress.org/support/topic/add-dns-prefetch-and-add-as-http-headers/)
 * This plugin is pretty neat! I see it has both preload and preconnect options.
   Do you think you could add dns-prefetch too, for when I have too many domains
   to preconnect to all of them, or for domains that I know I’ll need soon but not
   at initial page load? Eg a YouTube embed scrolled down the page a bit that doesn’t
   appear during initial page load – I count 5 domains that my browser connects 
   to once the embed comes into view, which is far too many domains to preconnect
   to, but it could do with some help to speed up its loading when it comes into
   view.
 * Also, any chance of an option to insert these hints as HTTP headers instead of
   in the <head> section? When I did it manually on my site, I noticed those preloaded
   files downloading another 20-25ms earlier on average as they could start as soon
   as my server replied, before it was ready to send the html/the browser had started
   parsing the html – not much but a small win in loading speeds is still a win 
   🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-dns-prefetch-and-add-as-http-headers%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 days, 9 hours ago](https://wordpress.org/support/topic/add-dns-prefetch-and-add-as-http-headers/#post-18872311)
 * agreed, not a bad idea, I’ll put it on the backlog, but no idea if and when this
   would be implemented I’m afraid 🙂
 * have a great weekend!
    frank

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-dns-prefetch-and-add-as-http-headers%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 days, 9 hours ago](https://wordpress.org/support/topic/add-dns-prefetch-and-add-as-http-headers/#post-18872311)
 * Status: not a support question