Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#9320 closed enhancement (wontfix)

Load multiple scripts with $.getScript

Reported by: gimi.alb@… 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

Change History (3)

comment:1 Changed 9 years ago by Rick Waldron

Component: unfiledajax
Priority: undecidedlow
Resolution: wontfix
Status: newclosed

comment:2 Changed 8 years ago by anonymous

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

comment:3 in reply to:  2 Changed 7 years ago by anonymous

Replying to 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.

Note: See TracTickets for help on using tickets.