hope you can help me with this issue

I am enqueuing the following scripts

add_action('admin_enqueue_scripts', function () {
    wp_enqueue_style('rwp/customizer-custom-controls.css', asset_path('styles/customizer-custom-controls.css'), false, null);
    wp_enqueue_script('rwp/color-picker-alpha.js', asset_path('scripts/color-picker-alpha.js'), 'jquery', null, true);
    wp_enqueue_script('rwp/customizer-custom-controls.js', asset_path('scripts/customizer-custom-controls.js'), array( 'jquery', 'jquery-ui-core', 'rwp/color-picker-alpha.js' ), null, true);
}, 100);

I expect customizer-custom-controls.js to load after color-picker-alpha.js is loaded, but observing the network tab in chrome developer tools, I can see both scripts are loaded simultaneously:

enter image description here

  • Your screenshot shows them being loaded consecutively, not simultaneously. – vancoder May 6 at 16:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.