How to disable automatic loading of jquery and jquery-migrate in WordPress. Deregister script.

When you want to have a full customizing powers on WordPress or you want to change version of included jQuery you will need to deregister script.

Its the function which you can call in file functions.php:

<?php wp_deregister_script( $handle ); ?>

So when you want to deregister jquery you just need to call this function with right parameter:

<?php wp_deregister_script( 'jquery' ); ?>
<?php wp_deregister_script( 'jquery-migrate' ); ?>

It will disable automatic loading of scripts.