If you are tired of the default WordPress header but don’t know how to change it without scripts, this article is for you. After reading this post, you will be able to remove all unwanted scripts from your WP Header and enjoy a clean design.
I’ve noticed that WordPress adds tons of unwanted scripts to the header. I totally understand why, but for highly focused themes, I like to remove them as much as I can. This decreases page load times, eliminates render-blocking resources, and optimizes the First Link Priority Rule.
Using the script below, add it to your themes function files. Adjust accordingly for WP version + updates: