Remove dns-prefetch from WordPress 4.9 | The One with the Thoughts of Frans

Most people seem to have switched to statically generated blogs like Hugo by now, but I’ve been using WordPress for some 13 years and combined with WP-Super-Cache it’s been static for pretty much that entire time. There’s little point to putting in extra time and effort just for some extra nerd cred.On the downside, every new 4.0+ release seems to add more cruft to the header. My functions.php consists of an ever-growing list of remove_action incantations. Here’s the latest addition, necessitated by WordPress 4.9.// remove WP 4.9+ dns-prefetch nonsenseremove_action( ‚wp_head‘, ‚wp_resource_hints‘, 2 );

Quelle: Remove dns-prefetch from WordPress 4.9 | The One with the Thoughts of Frans