Loading jQuery In WP Footer

Standard practice is to put all of your scripts at the bottom of the page. Loading jQuery in the WordPress footer has many benefits such as speed, you give priority to visual elements of your website. By default WordPress has registered the jQuery library to load in the header.

Here’s a snippet to force WP to load jQuery in the theme footer. Add the following code in your active theme’s functions.php file.

You may also be interested in our other articles on turn on error reporting, hotlinking protection, auto container height expand and Pyramid free WordPress theme