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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Load using wp_head with highest priority’ is closed to new replies.