Title: Load using wp_head with highest priority
Last modified: August 21, 2016

---

# Load using wp_head with highest priority

 *  Resolved [De’Yonté W.](https://wordpress.org/support/users/rxnlabs/)
 * (@rxnlabs)
 * [12 years ago](https://wordpress.org/support/topic/load-using-wp_head-with-highest-priority/)
 * This is a great plugin and highly useful for sites.
 * One thing that would be great is if you loaded the domains to be prefetched before
   any scripts are loaded from them. Add a priority number for the hook you use 
   into wp_head.
 * On line 120 of the dns-prefetch.php file, change
    `add_action('wp_head', 'dpf_prefetch');`
 * to
    `add_action('wp_head', 'dpf_prefetch',0);`
 * This way the DNS is prefetched as one of the first things loaded when calling
   wp_head.
 * Thanks.
 * [https://wordpress.org/plugins/dns-prefetch/](https://wordpress.org/plugins/dns-prefetch/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [jp2112](https://wordpress.org/support/users/jp2112/)
 * (@jp2112)
 * [12 years ago](https://wordpress.org/support/topic/load-using-wp_head-with-highest-priority/#post-4881704)
 * Will do, thanks for the assist.

Viewing 1 replies (of 1 total)

The topic ‘Load using wp_head with highest priority’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dns-prefetch.svg)
 * [DNS Prefetch](https://wordpress.org/plugins/dns-prefetch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dns-prefetch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dns-prefetch/)
 * [Active Topics](https://wordpress.org/support/plugin/dns-prefetch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dns-prefetch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dns-prefetch/reviews/)

## Tags

 * [improvements](https://wordpress.org/support/topic-tag/improvements/)

 * 1 reply
 * 2 participants
 * Last reply from: [jp2112](https://wordpress.org/support/users/jp2112/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/load-using-wp_head-with-highest-priority/#post-4881704)
 * Status: resolved