JQuery UI Loaded Event?

南笙酒味 提交于 2019-12-04 16:03:05

You could try to load your plugin like jQuery-ui and other with getcript and hold the ready function(s) before the script is fully loaded

// Hold the ready function(s)
$.holdReady(true);

// Retrieve the script and unlock the ready function(s) when the script is loaded
$.getScript("myplugin.js", function() {
    $.holdReady(false);
});

Keeping you ready function(s) simple

$(document).ready(function() {

    // your code here

});

I ran into a similar problem in the past. Use this:

if (typeof jQuery.ui != 'undefined') {
  //do something
}

Hope this helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!