How to add custom slider for textfield
It appears that:

function THEME_preprocess_html(&amp;$variables) {
    drupal_add_library('system', 'ui.slider');
}


is needed for query_ui to be available for anonymous users on every page.