check if jQuery UI is loaded [duplicate] September 18, 2023 by Tarik if (typeof jQuery.ui !== 'undefined') ... Should work. See also this SO post.