Forum Replies Created

Viewing 1 replies (of 1 total)
  • @stillewateren same question… I found this code on StackOverflow and it solved my problem partially. (Hope it might help)

    /**
     * Move jQuery to the footer. 
     */
    function wpse_173601_enqueue_scripts() {
        wp_scripts()->add_data( 'jquery', 'group', 1 );
        wp_scripts()->add_data( 'jquery-core', 'group', 1 );
        wp_scripts()->add_data( 'jquery-migrate', 'group', 1 );
    }
    add_action( 'wp_enqueue_scripts', 'wpse_173601_enqueue_scripts' );
Viewing 1 replies (of 1 total)