check if jQuery UI is loaded [duplicate] check if jQuery UI is loaded [duplicate] jquery jquery

check if jQuery UI is loaded [duplicate]


if (typeof jQuery.ui !== 'undefined') ...

Should work.

See also this SO post.


Can check:

$.ui

Or get the version:

$.ui.version


Just make sure you put any code that calls it in $(document).ready(). At that point, everything should be loaded on the page.