Include jQuery UI as a whole

Is it possible to include jQuery UI as a whole instead of:

wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-effects-core');
// a lot of other jquery ui imports....

I’ve searched in the codex and was able to find the full list of included scripts, but could not find a way to include the full jQuery UI version as one import like:

wp_enqueue_script('jquery-ui');

Sources:
http://codex.wordpress.org/Function_Reference/wp_enqueue_script

4 Answers
4

If you take a look at registrations in source there is no alias to load all of jQuery UI in bulk available and WP core itself uses pieces as dependencies individually.

You could create and use such alias yourself (registered script handle with no URL and all of needed scripts as dependencies), but it might be overkill – there are a lot of scripts there to load.

Leave a Comment