How to remove this from WP head:

<link rel="dns-prefetch" href="https://maps.google.com">

I had this also:

<link rel="dns-prefetch" href="https://s.w.org">

But, I removed it with this code inside my functions.php

add_filter( 'emoji_svg_url', '__return_false' ); 

Probably, this is added by one plugin exifografy, which can show map of location where image is taken. But, there is just few posts with map, so having this on all URL-s is just one more line of not used HTML code.

3 Answers
3

Resource Hints is a smart feature added to WordPress version 4.6. I think it might improve your site speed. But if you want to disable it, try this:

remove_action('wp_head', 'wp_resource_hints', 2);

References

  • wp_head resource hints
  • wp_resource_hints filter
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *