WordPress: how to remove unwanted code from your site’s header
July 15, 2021
When WordPress generates a webpage, it adds a lot of information unseen by the user. Much of this appears between the <head> tags in the code, and asks the browser to interpret information in a certain way, or load additional files and resources. While some of these are useful (such as style.css, which turns raw words into a stylish website), others are not. Some could compromise the security of your site.
Each resource that's requested slows your website a little. It makes sense to remove anything your theme or site doesn't use, even if all it does is shave a third of a second off the loading time.