I am trying to load jquery-ui-core and jquery-ui-slider in the head of my theme. Here is my code:
function load_jquery_ui() {
wp_enqueue_script( 'jquery-ui-slider' );
}
add_action( 'wp_enqueue_scripts', 'load_jquery_ui' );
The jQuery UI loads in the footer. But because I have some inline scripting (due to php implementation in the JS) I need it to load in the head. Anyone that has any idea how?