Hey guys,
I want to enqueue some scripts to the header in icon, ideally load them right after the theme loads jQuery.
I can enqueue the scripts adding the code below to functions.php of my child theme, but I think some of the scripts are loading in the footer (like jquery.execReady) and I want them higher up, after jQuery is loaded. Any pointers? :
wp_register_script('jquery-execReady', '/wp-content/themes/pro-child/framework/dist/js/site/jquery.execReady.js', array(
'jquery'
) , X_VERSION, true);
wp_enqueue_script('jquery-execReady');
wp_register_script('jquerySmoothstate', '/wp-content/themes/pro-
child/framework/dist/js/site/jquery.smoothState.js', array(
'jquery'
) , X_VERSION, true);
wp_enqueue_script('jquerySmoothstate');
wp_register_script('smoothStateWordpress', '/wp-content/themes/pro-child/framework/dist/js/site/smoothState-
wordpress.js', array(
'jquery'
) , X_VERSION, true);
wp_enqueue_script('smoothStateWordpress');