Skip to main content

Bug Tracker

Side navigation

#9320 closed enhancement (wontfix)

Opened May 17, 2011 08:27PM UTC

Closed May 18, 2011 12:57AM UTC

Last modified September 26, 2012 01:50AM UTC

Load multiple scripts with $.getScript

Reported by: gimi.alb@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

I would like to request a feature if possible.

I would like a way to load multiple scripts at once and fire 1 single function when all the scritps have been loaded.

Right for example:

$.getScript('js/script.js',function(){

//execute function

});

takes a string as url and loads only one script.

would it be possible to have the function also take an array of strings as an argument

e.g:

$.getScript(['js/script.js','js/script1.js','js/script2.js'],function(){

//execute function

});

and execute only one function when all the scripts have been loaded.

Thank you

Attachments (0)
Change History (3)

Changed May 18, 2011 12:57AM UTC by rwaldron comment:1

component: unfiledajax
priority: undecidedlow
resolution: → wontfix
status: newclosed

Changed October 28, 2011 04:40AM UTC by anonymous comment:2

Any explanation why this was closed. Is there some obvious better way of obtaining the desired effect.

Changed September 26, 2012 01:50AM UTC by anonymous comment:3

Replying to [comment:2 anonymous]:

Any explanation why this was closed. Is there some obvious better way of obtaining the desired effect.

I support this request. This is a function I would also like.