Remove unwanted script from WP Header

I’ve noticed that WordPress adds tons of unwanted script to the header. I totally get why, but for highly focused themes, I like to remove as much as I can. This decreases page load times, eliminates render-blocking resources, and optimizes the First Link Priority Rule.

The Script

Using the script below, add it to your themes function files. Adjust accordingly for WP version + updates:

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Add a Gravity Forms shortcode in WordPress (PHP)

To add a Gravity Form shortcode in the header, page, footer templates… pretty much anywhere in the theme, just add this code in your PHP file. Gravity Forms Code: You can also add the embed codes: Basic This snippet will display the form with an id of ‘1’; the title and description will not be… Read More

Namecheap’s free DYNDNS

Stumbled upon Namecheaps free DYNDNS service this morning, and I can’t be more impressed. All I did was buy a 0.66 cent domain Namecheap Enabled the Dynamic DNS in the Advanced DNS settings: Then added the client to my home media server: Windows: Direct UpdateMac: NC DNS Updater, IP MonitorUnix: DDClient , IPCheckOther: Java Dynamic… Read More