user interface - jquery widget include files -


is possible create jquery widget include files contain 1 specific widget? if use custom ui download builder insists on including ui core. want create load of individual widget files, plus file containing core. way, can include ui core plus each individual widget need site, , can see @ glance ui widgets being used page, rather having single jquery-ui-custom.min.js file not obvious widgets included within it.

$('head').append('<script src="http://example.com/widget.js"></script>');

or if want clever check if file has been included first.

if( ! $('head script[src="http://example.com/widget.js"]').length ){     $('head').append('<script src="http://example.com/widget.js"></script>'); } 

which checks if widget has not been loaded add otherwise may conflict , give un-expected results :) .


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -