Ways To Reduce Your Code Footprint

So you’ve learned how to add new functionality to your site using functions.php or by creating a custom plugin, that’s awesome! But did you make sure your code isn’t adding unnecessary load time to your site? Need a little direction? Then let me tell you what I’ve learned and I will start you down a path where we load JavaScript and CSS only when necessary, minimize database calls wherever possible, and leave footprints only when we should be found.