Possible Duplicate:
Testing if jQueryUI has loaded
How to check if the jQuery UI extension library to jQuery is loaded on the page?
Possible Duplicate:
Testing if jQueryUI has loaded
How to check if the jQuery UI extension library to jQuery is loaded on the page?
typeof(jQuery.ui) is object. A property like tabs is a function. If UI isn't loaded, typeof(jQuery.ui.tabs) will throw an error about undefined property. So the best test is if(typeof(jQuery.ui) == "object") { if(typeof(jQuery.ui.tabs) == "function"){ console.log("jQuery-UI loaded")}}. -- NOTICE that the need for a nested if condition is to avoid the undefined property error.Just make sure you put any code that calls it in $(document).ready(). At that point, everything should be loaded on the page.