Actually. This answer is the only correct answer.
If you need jQuery for a certain script just add it as necessary in the jQuery array.
wp_register_script( 'ytc-admin-scripts', YTC_URL . 'admin/admin-functions.js', array( 'jquery','jquery-ui-slider' ), '1.0');