[jQuery] Re: Selectively load js files

2009-04-04 Thread Brendan
That is exactly what I was going for, thanks! On Apr 3, 11:44 pm, Eric Garside gars...@gmail.com wrote: If you get the developer build, each of the files is separated out into a: ui.core.js, ui.draggable.js, etc format. If you want to add a bit of spice: $.uinclude = function(){     var

[jQuery] Re: Selectively load js files

2009-04-03 Thread Eric Garside
If you get the developer build, each of the files is separated out into a: ui.core.js, ui.draggable.js, etc format. If you want to add a bit of spice: $.uinclude = function(){ var scripts = ['core'], counter, loaded = 0; scripts.push.apply(this, arguments); counter = scripts.length;

[jQuery] Re: Selectively load js files

2009-04-03 Thread Nikola
What a great example, very usefull! I never thought of doing something like that... On Apr 3, 11:44 pm, Eric Garside gars...@gmail.com wrote: If you get the developer build, each of the files is separated out into a: ui.core.js, ui.draggable.js, etc format. If you want to add a bit of spice:

[jQuery] Re: Selectively load js files

2009-04-03 Thread Jack Killpatrick
cool little chunk of code, thanks for sharing. I did something like this for sets of trimpath templates (js/html templates), never thought to do it for scripts. Nice. - Jack Eric Garside wrote: If you get the developer build, each of the files is separated out into a: ui.core.js,