Load jQuery in Footer

By default WordPress has registered the jQuery library to load in the header.

This snippet changes this behaviour.

Code Snippet:

function jquery_in_footer( &$scripts) {
    if ( ! is_admin() )
        $scripts->add_data( 'jquery', 'group', 1 );
}
add_action( 'wp_default_scripts', 'jquery_in_footer' );

Posted in Pure hacks